Register Library is failing through InstallAware12
Posted: Fri Jan 25, 2013 5:28 pm
Hi,
Here is the scenario.
We have dlls in two different directories say Path1 and Path 2. Some of the dll's in Path2 are dependent on dll's in Path1. We set the paths of Path1 and Path2 in the %Path% environment variable using in the beginning of the install using "Set Environment" command. After "Appy Install" we are trying to register a dll, DLL2 in Path2 which has dependency dll, Dll1 in Path1, using "Register Library". The first time we run the installer, the registration of Dll2 failes because it cannot find Dll1. The second time we run it it passes. We could easily reproduce this issue by removing the paths Path1 and Path2 from the %Path% environment variable.
The issues seems to be when the InstallAware is running and even if we set the path, it doesn't take effect while the installer is running the first time. When we run the installer the second time then it sees the Path1 and Path2 and the registration works. Is there a way to make the installer look at the path the first time when we are trying to register the dll?
Here is the scenario.
We have dlls in two different directories say Path1 and Path 2. Some of the dll's in Path2 are dependent on dll's in Path1. We set the paths of Path1 and Path2 in the %Path% environment variable using in the beginning of the install using "Set Environment" command. After "Appy Install" we are trying to register a dll, DLL2 in Path2 which has dependency dll, Dll1 in Path1, using "Register Library". The first time we run the installer, the registration of Dll2 failes because it cannot find Dll1. The second time we run it it passes. We could easily reproduce this issue by removing the paths Path1 and Path2 from the %Path% environment variable.
The issues seems to be when the InstallAware is running and even if we set the path, it doesn't take effect while the installer is running the first time. When we run the installer the second time then it sees the Path1 and Path2 and the registration works. Is there a way to make the installer look at the path the first time when we are trying to register the dll?