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

lauch program after instalation as administrator


1 reply to this topic

bertyhell

bertyhell
  • Full Members
  • 1 posts

Posted 02 February 2009 - 15:31

hello
i made a installer with installshield
basic msi project
and i install 2 executes to the program files dir
i would like to execute 1 of them after instalation (alwais execute, so no user interaction)
but the program will need administrator rights
(the program makes an ini file with login data)

how do i set this in the installscript ?

atm i got this:
CODE
function MyFunction(hMSI)  
begin            

   LaunchApp(INSTALLDIR ^ "getlogin.exe", "");

end;


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 February 2009 - 16:12

No InstallScript needed. You can launch an EXE directly as a custom action. If it needs admin rights (waring - potential security issue) then your setup should be launched using setup.exe which is flaggged as requireing admin rights.