Jump to content


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.
Photo

How to run .bat file using Install shield Express


6 replies to this topic

dvssprakash

dvssprakash
  • Full Members
  • 1 posts

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

tylerdurden1977

tylerdurden1977
  • Full Members
  • 1 posts

Posted 12 February 2008 - 12:09

same problem here sad.gif
help us pleaseeeeeeeeeeeeeee!!!

TylerD.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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)

vklepko

vklepko
  • Full Members
  • 4 posts

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




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 July 2009 - 19:12

Did you try making the custom action "deferred in system context"?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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.

vklepko

vklepko
  • Full Members
  • 4 posts

Posted 08 July 2009 - 21:08

Stefan,

Your advice worked for me (Its an MSI project)

Thank you very much for you time.
Vlad