06-14-2011 08:31 AM
Hi,
We have created a DLL file in VC++ and we need to put that in System32 folder as it is getting used by more than one labview apps. Now we need to put that dll in windows\system32 folder. Hence we are trying to create a source distribution.
The problem we face is if we hardcode the directory path it works correctly. But thats not the way we want. Differnt windows machines can have different directory names (Sometimes c:\windows, ,c:\WinNT etc) and it should work with every system.
Is there any way to read environment variables or registry entries or anything by which we can put the dll in system32 folder through source distribution ?
06-14-2011 09:38 AM
A source distribution is not primarily meant for installing files into specific folders apart from the custom code contained in your source directory itself (and its subfolders).
You should go for creating an installer. This is able to solve your issue (see Destination settings for the installer).
hope this helps,
Norbert
PS: You can use your source distribution as basis for your installer.
06-14-2011 09:40 AM - edited 06-14-2011 09:43 AM
I'm a little confused. With a source distribution you have two directories that can be specified: "Destination Directory" and "Support Directory". Are you referring to setting the value of "Support Directory"? There is no mechanism to set this dynamically with the Application Builder Installer. You will probably need to use a third-party installer. I use Inno Setup, which is free, for my creation of installers.
OK, rereading your post I think I understand now. Have you tried to create an installer using the Application Builder installer?
EDIT: I see that Norbert basically said the same thing.