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

registry


3 replies to this topic

hahyojin

hahyojin
  • Members
  • 7 posts

Posted 28 January 2002 - 03:59

I must set registry and action an application after reboot...

how to???¤Ñ,.¤Ñ

setting path is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.

I enter the string value(System AD) in it's registry path.

Please give me a detailed[minute / careful] explanation of it.

ask for help... please...


Becky Nichols

Becky Nichols
  • Members
  • 45 posts

Posted 28 January 2002 - 21:14

What version of InstallShield are you using?  6.x?

Becky


hahyojin

hahyojin
  • Members
  • 7 posts

Posted 29 January 2002 - 00:30

6.3 version

please....


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 29 January 2002 - 02:43

I've never had to do this before, but the code should go something like this:

NUMBER nvType;

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
nvType =  REGDB_STRING;

RegDBSetKeyValueEx("\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\", "LABEL", nvType, "PATH\\FILENAME", -1);

where:
- "LABEL" is a description for the application such as "Jack's App."
- "PATH\\FILENAME" would be for the application you are trying to run such as
 TARGETDIR ^ "\\main.exe".

Hope it helps.