Page 1 of 1

LOADOLDDATA with Native Engine

Posted: Thu Sep 25, 2014 12:04 pm
by tofutim
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
2014-09-25_1126.png
2014-09-25_1126.png (32.58 KiB) Viewed 3575 times

Re: LOADOLDDATA with Native Engine

Posted: Fri Sep 26, 2014 11:49 am
by FrancescoT
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.

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