Once again I come to the well....
I'm Installing an app, Acrobat Reader 5.1 in this case, using the Adobe blind copy configuration file for a semi-silent installation.
The normal wait for return option on the File.Run command isn't helping me because Acrobat returns a finished status way too early.
I'm trying to create a loop that will wait for the app to be installed before continuing.
Here is what I'm trying.
My app installs ok but my AMS menu hangs.
Am I barking up the wrong tree with this loop or am I just a touch off on something?
Thanks!
-pjh
I'm Installing an app, Acrobat Reader 5.1 in this case, using the Adobe blind copy configuration file for a semi-silent installation.
The normal wait for return option on the File.Run command isn't helping me because Acrobat returns a finished status way too early.
I'm trying to create a loop that will wait for the app to be installed before continuing.
Here is what I'm trying.
Acrobat_Installed = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Adobe\\Acrobat Reader");
<some stuff to extract the app archive to a temporary folder on C:>
File.Run("C:\\acrotemp\\Setup.exe", "", "", SW_SHOWNORMAL, true);
repeat Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Adobe\\Acrobat Reader") until Acrobat_Installed;
<some stuff to clean up the temporary folder>
<some stuff to extract the app archive to a temporary folder on C:>
File.Run("C:\\acrotemp\\Setup.exe", "", "", SW_SHOWNORMAL, true);
repeat Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Adobe\\Acrobat Reader") until Acrobat_Installed;
<some stuff to clean up the temporary folder>
Am I barking up the wrong tree with this loop or am I just a touch off on something?
Thanks!
-pjh
Comment