cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dIPOLO84
Level 2

Help For A Begginer

I have designed a proyect using InstallShield Wizar 2009 V15 and I want to use it as a patch for one programme.
I need this installation to read one Windows registry so it can copy the docs to this path.
The registry that has the path I need to copy data in would be:

HKEY_LOCAL_MACHINE\Software\Nemetschek\Allplan\2008.0\InstallRoot\Datapath

How can i make my installation to read the path from this Windows registry so It can copy all the data there?

Should it be something with TARGETDIR??

Thanks for your patient and constant help!!!:)

dIPOLO
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

It depends on your project type; for a Basic MSI project, for example, please see this tip (PDF): http://www.acresso.com/webdocuments/PDF/is_install_dir_from_app_search.pdf.
0 Kudos
dIPOLO84
Level 2

I'm using a InstallScript Project and i think I've discovered where should I introduce the registry to show the path.

Don't know is how to write it properly so it retrieves the path where the files should be installed

Thanks for your time and help!
0 Kudos
RobertDickau
Flexera Alumni

Yes, you will want to use RegDBGetKeyValueEx to read the destination value, and if it exists set TARGETDIR to the result.
0 Kudos