Windows-Installer: How to unpack application into TempFolder, run it and delete it?
I have own installation procedure InstallInit.exe. I need to include it into MSI installer, so the windows-installer will:
- Unpack my InstallInit.exe into Temp Folder
- Launch [Temp Folder]\InstallInit.exe /withargumets
- Delete [Temp Folder]\InstallInit.exe
Do you have any tips how to do it? I know only how to do the step 2 (through C开发者_如何学JAVAustom Actions).
Note1: I am using VS2010 to create the installer.
Note2: I am OK also with another folder (i.e. target dir in Program Files). This would solve #1. I just need to delete the InstallInit.exe after installation finished.
(1) Put the InstallInit.exe into Binary-Table
(2) Create a CustomAction for unpack
(3) Create a CustomAction for Launch
(4) Change RemoveFile-Table - add InstallInit.exe (InstallMode = 1)
As part of your solution, create a program which performs steps 1-3 and call THAT program as a Custom Action
精彩评论