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

add reg keys by calling a .reg file...?


7 replies to this topic

Cesar

Cesar
  • Members
  • 21 posts

Posted 08 March 2001 - 13:16

i'd like to make some changes in the registry by calling a reg file, i'd like to know how to load the inormations contained in this reg file... and make the changes in the registry...

thanks


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 March 2001 - 14:27

If you are using IPWI you can import the .reg file into your setup project.

If you want to merge it at runtime, you can call regedit in a custom action.


Cesar

Cesar
  • Members
  • 21 posts

Posted 08 March 2001 - 14:41

what i've done is...:

function ProcessAfterDataMove()
   STRING szReferenceFile;

begin

LaunchAppAndWait(WINDIR ^ "Regedit.exe" ,TARGETDIR ^ "cnf\\config.reg" ,NOWAIT );

but i have a error message showed by Registry editor ( in 4 Message Boxs) telling me the file can't be imported...


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 March 2001 - 18:38

Maybe you created the reg file on a different operating system version? They are slightly difefrent (the first line in the .reg file tells you the reg file version)

Are you using Windows Instalelr or InstallShield 5 or 6?


Cesar

Cesar
  • Members
  • 21 posts

Posted 09 March 2001 - 10:14

i'm using installshield 5, and i'm tryin to make this installation on a NT4

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 March 2001 - 12:11

#Moderation Mode

Move to IS5 forum.

Moved here


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 March 2001 - 12:12

And you created the .reg file on NT4 and are testing on NT4?
Are you logged on as administrotor?