When working on a packaging process, you normally package using specific guidelines. One of the packaging guidelines I often use, is changing the installation directory of an application to a unique directory, conform naming standards.
There are lots of blogs on how to create a silent install package for VLC Player, but the most current blogs never mention how to change the installation directory. I noticed that previously the parameter /D was used for changing the installation directory, but in the current version (2.1.5) that doesn’t work anymore.
So how to change the directory?
Basicly, you have to tell the system the path, before launching the installer!
1. Add the following registry key:
CMD: reg add “HKLMSOFTWAREVideoLANVLC” /v “InstallDir” /t REG_SZ /d “D:vlc”
2. Then launch the installer and you will notice the installation path is changed to: D:vlc