This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

How to run .bat file using Install shield Express
Started by
dvssprakash
, Feb 12 2008 10:24
6 replies to this topic
Posted 12 February 2008 - 10:24
Plz suggest me the steps to run .bat file using Install shield Express on the client machine
Plz send u r reply to sriprakash_durvasula@adp.com
Plz send u r reply to sriprakash_durvasula@adp.com
Posted 12 February 2008 - 18:48
Create a custom action that launches cmd.exe. On the command line pass the path to your .bat file (I think it's the /c parameter of cmd.exe)
Stefan Krüger
InstallSite.org twitter facebook
Posted 08 July 2009 - 18:45
Stefan,
I can't make my script work under Vista when UAC is on unless release's property "Required Execution Level" is elevated to "Administrator".
I need to run a .BAT that executes caspol.exe which adds a strong name to the security.config. It works perfectly on XP.
On Vista, it looks like .BAT must be executed in "Run as Administrator" mode to make caspol.exe work.
Although, administrator's credentials are provided (this is a per machine installation) during the installation, it seems cmd.exe/.BAT is executed with the privileges of a user who starts the installation.
Is there any other way to make it work without elevating of execution level of the entire release?
Thank you,
Vlad
I can't make my script work under Vista when UAC is on unless release's property "Required Execution Level" is elevated to "Administrator".
I need to run a .BAT that executes caspol.exe which adds a strong name to the security.config. It works perfectly on XP.
On Vista, it looks like .BAT must be executed in "Run as Administrator" mode to make caspol.exe work.
Although, administrator's credentials are provided (this is a per machine installation) during the installation, it seems cmd.exe/.BAT is executed with the privileges of a user who starts the installation.
Is there any other way to make it work without elevating of execution level of the entire release?
Thank you,
Vlad
Posted 08 July 2009 - 19:12
Did you try making the custom action "deferred in system context"?
Stefan Krüger
InstallSite.org twitter facebook
Posted 08 July 2009 - 19:16
Sorry, that reply is for MSI prohjects, it's not applicable to InstallScript projects.
InstallScript projects must be executed with administrator rights.
InstallScript projects must be executed with administrator rights.
Stefan Krüger
InstallSite.org twitter facebook
Posted 08 July 2009 - 21:08
Stefan,
Your advice worked for me (Its an MSI project)
Thank you very much for you time.
Vlad
Your advice worked for me (Its an MSI project)
Thank you very much for you time.
Vlad