Installdir from RegistryValue

Post specialized setup scripts you have created here.
michel
Posts: 4
Joined: Sun Jan 06, 2013 4:12 am

Installdir from RegistryValue

Postby michel » Sun Jan 06, 2013 4:31 am

Hi ,, iam new in this forum and have the 30 Day test Version installed to testwork the program.

i have in past worked with other installer and now i will change.


I have a simple question:

i will readout created registry key to set automatically installdir for copying files.

for example:

in registry exists, in key "hklm/software/test/testsoft" ,a value of a directory "testdir"
on installmedium exists files
the files from installmedium must be copied in specified dir in registryvalue.
( installmedium/files/*.* mußt copy to dir from registryvalue "testdir"

please tell me what kind of script i must type use or create.

in old installer from threax i create variable to read dir from registry and define value to solve this.
in new installer from you the design completely new and structure is difficult. english ist not my standardlanguage.
script create is changed and unknown for me.

thanks for your time and help

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Installdir from RegistryValue

Postby FrancescoT » Mon Jan 07, 2013 5:48 am

Dear Michel,

If you want to read a key value under registry use "Read Registry" IA command as with the following code example;

InstallAware Clipboard Data format;

Code: Select all

~InstallAware Clipboard Data~
~Read Registry~
~{7B71D660-D375-474D-8389-57EEE17753B3}~
~MYREGVARIABLE~
~2~
~software\test\testsoft~
~testdir~
~Set Variable~
~{F39B2109-0370-47C8-83E2-1FBDD63A5F9C}~
~MYREGVARIABLE$MYAH$MYAH$FALSE~
~~


The same in human readable format;

Code: Select all

Set Variable MYREGVARIABLE to
Read Registry Key HKLM\software\test\testsoft\testdir into MYREGVARIABLE


Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

michel
Posts: 4
Joined: Sun Jan 06, 2013 4:12 am

Re: Installdir from RegistryValue

Postby michel » Mon Jan 07, 2013 6:06 am

hi FrancescoT

,, very thanks for your help. I test your code and write feedback to this. :D

michel
Posts: 4
Joined: Sun Jan 06, 2013 4:12 am

Re: Installdir from RegistryValue

Postby michel » Mon Jan 07, 2013 12:56 pm

hi FrancescoT,

I am back.

I have make many starts with the code , but iam many Trouble.

Iam surprised about my inability.

With old Astrum Installer i works good , but the astrum have not the options of installaware. this is reason for me to change to installaware.

The design of installaware are difficult for me , but i will learn.

Can you tell me a step by step guide to solve the problem? i search web for instruction book with examples or a book for dummies, but found nothing.

Basicly setups i can make but extended are difficult for me because of other constrctionstructure of programm.

please give me the right way to order the infos correctly in my head.

I realized is that it is hard to get used to convert from other Programm to other.

I will learn this really and hope for your help.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Installdir from RegistryValue

Postby FrancescoT » Mon Jan 07, 2013 1:18 pm

Dear Michel,

I suggest you to have a look at our documentation available on line at:
http://www.installaware.com/publications-whitepapers.htm

and in particular to the following documents:
- Using InstallAware to Deploy Microsoft .NET Framework Applications (it can be easily adapted with any kind of application)
- MSIcode Scripting Technology for Windows Installer

Of course, if you have a question about InstallAware use our forum.

Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

michel
Posts: 4
Joined: Sun Jan 06, 2013 4:12 am

Re: Installdir from RegistryValue

Postby michel » Tue Jan 08, 2013 3:24 am

Hi FrancescoT,

i take a look in the Dokuments and study this. If a have Questions i post in Forum.

Thanks for your help :D

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Installdir from RegistryValue

Postby FrancescoT » Tue Jan 08, 2013 5:57 am

:D :D :D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 7 guests