Hi, I have a Native Engine installer which uses /updatesetup. When I install a new version, I would like to pick up the old /updatesetup variables (frequency, time, etc.) from the old version so that the user does not have to re-enter this information. How can I do this? I thought that I might be able to use LOADOLDDATA but perhaps this doesn't work with Native Engine. Can I turn off Native Engine and retrieve the information and turn it back on? How is this done?
I want to be able to pull UPDATE_DATE, etc. from the old installer
LOADOLDDATA with Native Engine
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: LOADOLDDATA with Native Engine
Dear Tofutim,
you can use LOADOLDDATA with NATIVE ENGINE also.
For this purpose, please try the following code snippet.
Place the code at the very beginning of your main script file and set LOADOLDDATA as TRUE with the project compiler variables settings.
The same snippet as IA clipboard format;
Hope this helps you.
Regards
you can use LOADOLDDATA with NATIVE ENGINE also.
For this purpose, please try the following code snippet.
Place the code at the very beginning of your main script file and set LOADOLDDATA as TRUE with the project compiler variables settings.
Code: Select all
Set Variable NATIVE_ENGINE to TRUE
Set Variable MYDATA to $MYDATA$
if Variable MYDATA Equals
MessageBox: , MYDATA isEmpty
Set Persistent Variable MYDATA to MyValue
else
MessageBox: , MYDATA = $MYDATA$$NEWLINE$$NEWLINE$
end
The same snippet as IA clipboard format;
Code: Select all
~InstallAware Clipboard Data~
~End~
~{3C7B9942-BD26-471D-9710-BE8922C3C81C}~
~MessageBox~
~{73CC928D-13F3-4AF6-A8F1-EBE1B233C205}~
~~
~MYDATA = $MYDATA$$NEWLINE$$NEWLINE$~
~0~
~1~
~~
~Else~
~{6637B046-4706-4C44-AFA5-C6D54B297ABD}~
~Set Variable~
~{A37CCE5C-882F-485C-9015-9CE705ED099A}~
~MYDATA$MYAH$MYAH$TRUE~
~MyValue~
~MessageBox~
~{7ACAC5F4-8210-4EC3-9C70-39C248926981}~
~~
~MYDATA isEmpty~
~0~
~1~
~~
~If~
~{75B3F405-E0FB-4690-B8A9-3DFAD01E8608}~
~MYDATA~
~0~
~~
~FALSE~
~Set Variable~
~{0CE0A7BE-596E-4811-BDE8-D499EE6E8FE4}~
~MYDATA$MYAH$MYAH$FALSE~
~$MYDATA$~
~Set Variable~
~{E2025104-3EAE-4512-A21B-6DFEC88DB024}~
~NATIVE_ENGINE$MYAH$MYAH$FALSE~
~TRUE~
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
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
Who is online
Users browsing this forum: No registered users and 107 guests