Hi,
Is there a way I can specify a program to run that is outside of the %InstallSourceDir%. I would like to run a program that resides in another directory on the root of my flash drive, but cannot of course guarantee the drive will get the same letter in every system I use it on, so I'm looking to capture the drive letter.
Andy
UVK Scripts - variable for drive letter
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
-
- Posts: 24
- Joined: Fri Nov 03, 2017 3:13 pm
- Location: Cheshire, UK
- Contact:
Re: UVK Scripts - variable for drive letter
Hi Andy.
You can use %InstallSourceDir%\.. to specify the parent directory of %InstallSourceDir%. Use %InstallSourceDir%\..\.. to specify the grand parent and so on.
Let's say %InstallSourceDir% is in F:\UVK. If you want F:\cCleaner.exe, specify %InstallSourceDir%\..\cCleaner.exe.
Hope it makes sense.
You can use %InstallSourceDir%\.. to specify the parent directory of %InstallSourceDir%. Use %InstallSourceDir%\..\.. to specify the grand parent and so on.
Let's say %InstallSourceDir% is in F:\UVK. If you want F:\cCleaner.exe, specify %InstallSourceDir%\..\cCleaner.exe.
Hope it makes sense.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.
Fred
Fred
-
- Posts: 24
- Joined: Fri Nov 03, 2017 3:13 pm
- Location: Cheshire, UK
- Contact:
Re: UVK Scripts - variable for drive letter
Many thanks Fred