2

I'm using script at Run exe after msi installation? to add a "run application" window at the end of my install. However, i would like to pass a commandargument to the application, how can I do that?

Thank you

Community
  • 1
  • 1
Marin
  • 1,311
  • 16
  • 35

1 Answers1

1

If you have a property in you msi package (for example, INSTALLDIR), you may pass in as parameter using syntax: [PROPERTYNAME].

So, you should find your custom action and add into exe String list of properties (for example, "[INSTALLDIR] " "[COMMONFILESDIR64]" etc)

Run msi installer with command line: msiexec /i(or x) setup.msi /l*vx log.txt - and see the log file. msiexec will write ALL properties to this file.

Manushin Igor
  • 3,398
  • 1
  • 26
  • 40
  • thanks, but I don't quite understand. This is my action: sql = "INSERT INTO `CustomAction` (`Action`, `Type`, `Source`, `Target`) VALUES ('VSDCA_Launch', '210', '" + fileId + "', '')"; Where should I put this? – Marin Jan 04 '11 at 12:22
  • figured it out, i just had to put the argument under "target". thanks – Marin Jan 04 '11 at 12:35