PDA

View Full Version : Uninstall



NewsArchive
01-30-1997, 01:00 AM
How to I get InstallShield to install Uninstall.exe with the appropriate
icon into my own File Folder?

NewsArchive
02-03-1997, 01:00 AM
Hi Michael,

<<<<
How to I get InstallShield to install Uninstall.exe with the appropriate
icon into my own File Folder?
>>>>

The UNINST system variable provides the path of the uninstall executable
uninst.exe.The path of the log file passed as an argument to the
Deinstallstart function is used as the -f switch argument in the command line
for the uninstallicon.

here is a sample segment,

declare
STRING svFolder,szProgram,svLogFile;
...
szProgram=UNINST; //has the uninstall executable path
/svLogFile has the complete path and name of the log file created for the
/application.

/use LongPathToQuote on the executable filepath and filename expression so
/that any spaces in the expression are not seen as delimiters
LongPathToQuote(szProgram);
szProgram =szProgram +"-f" +svLogFile;
svFolder="YOUR FOLDER";
AddFolderIcon(svF0lder,"UNINSTALLSHIELD",szProgram,WINDIR," ",0," ",REPLACE);

WINDIR has the uninstall execuutable which is placed during initilization.

Regards,

Mohan K. M. K,
Aditi Corp.
InstallShield Corporation Authorized Solution Provider.

Aditi Corp was formerly known as NetQuest Inc.