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

Run script duirng self heal


1 reply to this topic

Steve55

Steve55
  • Members
  • 14 posts

Posted 23 June 2005 - 20:32

Hi All:

I need to run some DOS commands the first time the user uses the application. These commands update data which is different for each user. How can I acheive this in WISE?

Thanks,

Steve55

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 24 June 2005 - 16:54

One way is to use Microsoft's "ActiveSetup" feature. this involves:

* Write this key during installation "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]StubPath msiexec /fup [ProductCode]"

* Insert a custom action into your MSI that will run the necessary commands. To ensure this action only runs once per user you can sequence it with (Installed) - In this case it will not run for the user running the actual setup itself.

After installation the scripts will run on the first logon for each user.
Regards
-Stein Åsmul