Persistent Variable

Got a problem you cannot solve? Try here.
dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Persistent Variable

Postby dmostert2 » Thu Jun 21, 2007 6:39 am

Hi,

At what stage does a persistent variable actually become persistent?

Before or after Apply Install??

I have the following code that does not seem to work:

This happens before prerequisites install... So on every re-boot during prerequisites, the same code get executed, even though I only want it to execute the first time.

Code: Select all

 if Variable DATE_CHECK_PASSED not is Defined
   Set Persistent Variable DATE_CHECK_PASSED to FALSE


   Do some work. On fail, Terminate Installation

otherwise

   Set Persistent Variable DATE_CHECK_PASSED to TRUE
 end


What am I doing wrong?

Thanks,
D.

dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Postby dmostert2 » Sat Jun 23, 2007 5:49 am

Any ideas / help?

Thanks,
D.

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Tue Jun 26, 2007 9:27 am

I believe they are persisted only after apply install, if you need to save a value before apply install write the value to the registry or to a text file.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Postby dmostert2 » Wed Jun 27, 2007 2:31 am

Thanks,

But doesn't Write to registry also only happen after Apply Install?

I'll try the write to file option then.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 53 guests