12-16-2014 04:21 AM
Hello,
I have created an installer for my LabVIEW application.
Most computers at my work has 😧 drive as hdd-partition reserved for installed programs.
For this reason, I decided to use D:\ in my installer default installation directory (see attachment).
However, there are some computer which use letter 😧 for DVD, CD device.
In such a case, my installer corrupts with the message in attachment.
I dont want to change the default directory out of 😧 drive (because it is more convenient in most cases) and i dont want to create two separate installers, one for C: drive and one for 😧 drive.
Is there any way how to resolve my problem? For example if there is no valid 😧 drive on the computer, then the installer will reset the default installation directory to C:\Program Files without crash.
Any help would be greatly appreciated.
Best regards,
Martin Vlček
12-16-2014 08:04 AM
You should be using a path that has the [Program Files] token in it rather than hardcoding the path.
12-16-2014 09:57 AM
Thank You very much for reply.
However, this doesnt solve my problem.
There is Program Files folder placed on the same location C:\Program Files on both types of PCs- regardless if there is some 😧 partition or not.
We use in our factory convention, that the special programs used at work should be installed on 😧 drive, if there is some.
Best regards,
Martin Vlček
12-16-2014 04:28 PM - edited 12-16-2014 04:30 PM
Probably the easiest thing to do is configure your development PC to be the same as your target PC. Move your CD/DVD drive to another drive letter and map a network drive to "D:". I'm not sure if redirects work well with installers.
12-16-2014 08:24 PM
That's a good idea Bill.
Actually, for a machine that only has a single harddrive (c:), you should be able to map (d:) to it as well. I haven't done it in a very long time, but I think you can map multiple letters to the same physical drive.
12-16-2014 10:59 PM - edited 12-16-2014 11:02 PM
@RavensFan wrote:
That's a good idea Bill.
Actually, for a machine that only has a single harddrive (c:), you should be able to map (d:) to it as well. I haven't done it in a very long time, but I think you can map multiple letters to the same physical drive.
Wow, I never thought of that. If you dont hear from me in about a month, it's because I had to reformat my hard drive. 😉
edit: nope, not gonna try it.
12-16-2014 11:03 PM - edited 12-16-2014 11:04 PM
I seem to recall something about installers not liking a drive created with the subst command. It might be if you try to install FROM one, like faking a CD drive. Maybe you can still get away with installing TO a drive created with subst.