[installer] installshield reg key laten importeren

Pagina: 1
Acties:

  • AtlonXP1800
  • Registratie: Augustus 2001
  • Laatst online: 29-01-2025
Ik probeer om voor een programmaatje van mij een installatie te maken dmv installshield.
Een probleem waar ik tegen aan loop is dat ik iets in het register moet zetten voor het programmaatje.
Dit moet een key zijn die aan geeft waar het programma zich bevind. Deze locatie is natuurlijk afhankelijk van wat de gebruiker tijdens de installatie als install dir kiest.

De help functie van installshield zegt dit er over:

code:
1
2
3
4
5
6
7
8
9
10
To use INSTALLDIR as a variable in the registry (Windows Installer-based projects only): 

Select Yes to indicate that you want to configure the registry data that your application will install.
Right-click on HKEY_CLASSES_ROOT and select New and point to Key.
Name the key Installation Location.
Right-click on the Installation Location key and select New, and point to String Value.
Name the string value My Installation Location.
Double-click the My Installation Location key to display the Edit Data dialog.
In the Value Data field, type [INSTALLDIR].
At run time, the value of [INSTALLDIR] is replaced with the installation directory.


Dat klinkt hardstikke leuk, maar wat moet ik met een key in HKEY_CLASSES_ROOT ? ik wil mijn reg key in local_machine hebben. Ik heb geprobeerd om daar als waarde voor mijn key [INSTALLDIR] neer te zetten, maar dan wordt dat gewoon letterlijk in het register gezet.

heeft iemand hier ervaring mee?