License Agreement Printing
Posted 01 August 2003 - 15:53
Posted 04 August 2003 - 07:24
Cant you just save the text file and print it?
Posted 29 August 2003 - 00:59
Posted 01 September 2003 - 23:02
Posted 30 September 2003 - 03:37
CODE |
function MM_PrintEULA( hMSI ) STRING szWordPadFolder, szEulaSelection, szEulaToOpen; NUMBER nBuffer, nMsg, nwParam, nlParam, nReturn, nvExitCode; HWND hMsiWnd, nHwnd; begin // the path to wordpad.exe appears to be the same on all NT based os's szWordPadFolder = PROGRAMFILES ^ "Windows NT\\Accessories\\Wordpad.exe"; nBuffer = 256; // determine what EULA was selected MsiGetProperty ( hMSI, "EULA_REGION", szEulaSelection, nBuffer ); if szEulaSelection = "1" then szEulaToOpen = "ENG_EULA_US.rtf"; elseif szEulaSelection = "2" then szEulaToOpen = "ENG_EULA_UK.rtf"; elseif szEulaSelection = "3" then szEulaToOpen = "ENG_EULA_EU.rtf"; elseif szEulaSelection = "4" then szEulaToOpen = "ENG_EULA_US.rtf"; else szEulaToOpen = "GER_EULA_GER.rtf"; endif; // Print license agreement to default printer try _LaunchAppEx(szWordPadFolder, "/p " + SUPPORTDIR + szEulaToOpen, NOWAIT, FALSE , 500, nvExitCode); //LaunchApp ( szWordPadFolder , "/p " + SUPPORTDIR + szEulaToOpen ); Delay (1); if nvExitCode = 0 then MessageBox ( @General_PrintEULA, INFORMATION); else MessageBox ( @Error_PrintEULA, INFORMATION); endif; catch MessageBox ( @Error_PrintEULA, INFORMATION); Err.Clear; endcatch; end; |
-Stein Åsmul
Posted 07 November 2003 - 02:53
-Stein Åsmul
Posted 07 November 2003 - 12:12
Stefan Krüger
InstallSite.org twitter facebook
Posted 07 November 2003 - 20:05
-Stein Åsmul
Posted 08 November 2003 - 14:19
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Pass in "print" in the lpOperation parameter. ShellExecute works with verbs, not command line switches. It performs the same task as right clicking the file and selecting "print".
Stefan Krüger
InstallSite.org twitter facebook
Posted 19 February 2004 - 16:37
I was trying to do something similar to what you explained.
But at the point of "License Agreement" screen I wouldn;t have the files installed.I'm not using installshield on this project(to use SUPPORTDIR).
Can you please explain any other procedure...to access the file in my MSI?
Or Do I have to extract the filestream out first?
Posted 19 February 2004 - 18:46
Stefan Krüger
InstallSite.org twitter facebook
Posted 04 May 2004 - 08:25
I believe the next step is to add acustom action which should be called from the print button can you show me how to add this.
Posted 04 May 2004 - 15:54
Stefan Krüger
InstallSite.org twitter facebook