View Single Post
  #6  
Old 19-10-2008, 15:02
nando2002 nando2002 is offline
Die Hard Member
 
Join Date: Apr 2007
Location: Portugal
Posts: 431
Thanks: 0
Thanked 2 Times in 2 Posts
nando2002 is on a distinguished road
@mondragon:
I've found a way to run the pes09setup (inno setup) from inside the msi:
edit msi with orca

in table CustomAction, add a new row and set these values:
Action: PES09Img
Type: 50
Source: InnoSetup
Target: PES09Setup.exe /Silent

in table InstallUISequence, add a new row and set these values:
Action: PES09Img
Condition: Not Installed
Sequence: 1302 (this will make inno setup run at the end of msi installer - can be any values above ISSetupFilesCleanup action)

in table Property, add a new row and set these values:
Property: InnoSetup
Value: Pes09Setup.exe

Save.
in the iss file, you can add the or (PageID=wpSelectDir) to the ShouldSkipPage function to prevent the Select Folder page. Combined with /silent will make inno setup skip the 1st screen and start extracting the files to the right folder.

Note: the names can be anything you like. Just make sure they are referred correctly since values in table A become foreign keys in table B.
Reply With Quote