Archive: Installer help


Installer help
I am repackaging some .msi some data files, and a setup.exe file, and trying to create one installer to extract all these files into a temp directory, run the setup.exe, and then delete the temporary files once done. I have gotten pretty much everything to work except for two things. First, Once it is done extracting the files into $temp and runs the setup.exe it says finished installing "installed program's name" and then it has a check box that says run "ipn", however if that is clicked it THEN installs the application.
Second, after it is done installing the application, it leaves the files located in the $temp directory unless I tell it to include an uninstaller then I can go into add/remove programs and remove the temporary files.
My two questions are 1. Is there a way automatically start the install once the files are extracted into a temp locations without the check box?, and 2. Is there a way to delete all the files stored in the $temp directory after it is finished installing the program?


1) Yes, you don't have to add a component or directory page to your installer. It's also possible to create a silent installer.

2) Use the plug-ins directory ($PLUGINSDIR after calling InitPluginsDir). It will automatically be deleted when the installer quits.


2) If you're using a plugin you have to unload it before quiting the installation, or its file will continue to be inside $PLUGINSDIR (as it extracts the plugin to $PLUGINSDIR when used).