Persistent Variable

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

Persistent Variable

Post by dmostert2 »

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

Post by dmostert2 »

Any ideas / help?

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

Post by jimo »

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

Post by dmostert2 »

Thanks,

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

I'll try the write to file option then.
Post Reply