Old 23rd September 2005, 15:16   #1
frank99
Junior Member
 
Join Date: Sep 2005
Posts: 12
running a key after install

isa there some code that runs a registry key's value after its installed.. etc. i install a registry key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and the value is "application1.exe -b configurationfile.config"

how could i make this application launch automaticly from the key? or something like that ? thanks
frank99 is offline   Reply With Quote
Old 23rd September 2005, 16:53   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
To run a program use Exec:
Exec '"application1.exe" "-b configurationfile.config"'

-Stu
Afrow UK is offline   Reply With Quote
Old 23rd September 2005, 18:09   #3
frank99
Junior Member
 
Join Date: Sep 2005
Posts: 12
i use this in the installer ? or in the registry key?
frank99 is offline   Reply With Quote
Old 23rd September 2005, 19:03   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Installer if you want to run it there and then. If you want to wait for the process to finish use ExecWait.

The Run registry key is for running a program when you boot up Windows.

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump