Silent install of VLC questions

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
abendorg
New Cone
New Cone
Posts: 6
Joined: 18 May 2012 17:04

Silent install of VLC questions

Postby abendorg » 18 May 2012 17:34

I see there is a /S for the silent install for the .exe, however what of an official MSI?

Is there some way from the installer (not the icon...not reasonable at all for mass deployment...) to disable the autoupdater & privacy settings? Would rather do a mass push & ensure systemwide it is disabled via the installer like most other app installers than rely on an icon. Don't want people opening media files directly & VLC prompting for an update then either. I see on first run if you disable the privacy/autoupdate it saves it under C:\Users\username\AppData\Roaming\vlc\ vlcrc & vlc-qt-interface.ini, but this is still a manual/per user process, there must be something that can be done that is automated/global???

Also noticed the desktop icon I want to delete post install is placed in "%Public%\desktop\VLC media player.lnk" (C:\Users\Public\Desktop) on windows 7, but on windows xp you use the "%ALLUSERSPROFILE%\Desktop\VLC media player.lnk". Any chance of using the same variable on both xp/7?

Thanks!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Silent install of VLC questions

Postby Jean-Baptiste Kempf » 21 May 2012 18:58

There is a msi, but it does not do all of those
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

abendorg
New Cone
New Cone
Posts: 6
Joined: 18 May 2012 17:04

Re: Silent install of VLC questions

Postby abendorg » 21 May 2012 19:26

Under http://sourceforge.net/projects/vlc/files/2.0.1/win64/ & http://sourceforge.net/projects/vlc/files/2.0.1/win32/ I see a slew of other installer types, but no Videolan official .MSI. (I'll admit, I could be blind...)

I wish I could help out with authoring an official .msi with all those kind of options, but at this point in time I don't know how to accomplish such a thing. It looks like this link http://www.installsite.org/pages/en/msi/authoring.htm has a pretty good list of MSI creation tools (some free) that might be of help. I see a few other sourceforge projects like 7-zip & libreoffice do offer .MSI versions, so perhaps their devs could lend a hand, especially with no desktop icon/disable autoupdate/etc?

Thanks!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Silent install of VLC questions

Postby Jean-Baptiste Kempf » 22 May 2012 01:00

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

abendorg
New Cone
New Cone
Posts: 6
Joined: 18 May 2012 17:04

Re: Silent install of VLC questions

Postby abendorg » 06 Jul 2012 23:21

Thanks for the link to that msi, but in digging around this board some more it appeared people were having others with it. I whipped up a little something that enabled me to deploy this via SCCM (end result is an .exe not a .msi though) but it seems to work for what I need.

I used iexpress.exe (remember to build vlc 2.0.2 x86 off a x86 machine & x64 on a x64 machine...building it via iexpress.exe off x64 wont execute on a x86 os).

for x64 I used the following for a install.bat - (to which I am sure others have better variables, suggestions welcome)
%~dp0vlc-2.0.2-win64.exe /S
mkdir "%APPDATA%\VLC\"
copy %~dp0vlcrc "%APPDATA%\VLC\"
copy %~dp0vlc-qt-interface.ini "%APPDATA%\VLC\"
mkdir "C:\Users\Default\AppData\Roaming\VLC\"
copy %~dp0vlcrc "C:\Users\Default\AppData\Roaming\VLC"
copy %~dp0vlc-qt-interface.ini "C:\Users\Default\AppData\Roaming\VLC"
del "%PUBLIC%\Desktop\VLC media player.lnk"
del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Documentation.lnk"
del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Release Notes.lnk"
del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Reset VLC media player preferences and cache files.lnk"
del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VideoLAN Website.lnk"
del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VLC media player skinned.lnk"


then the following for x86 - (again, better variables are welcome) -
%~dp0vlc-2.0.2-win32.exe /S
mkdir "%APPDATA%\VLC\"
mkdir "%SystemDrive%\Documents and Settings\Default User\Application Data\VLC\"
copy %~dp0vlcrc "%APPDATA%\VLC\"
copy %~dp0vlc-qt-interface.ini "%APPDATA%\VLC\"
copy %~dp0vlcrc "%SystemDrive%\Documents and Settings\Default User\Application Data\VLC\"
copy %~dp0vlc-qt-interface.ini "%SystemDrive%\Documents and Settings\Default User\Application Data\VLC\"
del "%ALLUSERSPROFILE%\Desktop\VLC media player.lnk"
del "C:\Documents and Settings\All Users\Start Menu\Programs\VideoLAN\Documentation.lnk"
del "C:\Documents and Settings\All Users\Start Menu\Programs\VideoLAN\Release Notes.lnk"
del "C:\Documents and Settings\All Users\Start Menu\Programs\VideoLAN\Reset VLC media player preferences and cache files.lnk"
del "C:\Documents and Settings\All Users\Start Menu\Programs\VideoLAN\VideoLAN Website.lnk"
del "C:\Documents and Settings\All Users\Start Menu\Programs\VideoLAN\VLC media player skinned.lnk"


The 2 files I copy over vlc-qt-interface.ini & vlcrc simply have some custom changes (autoupdates disabled, etc).

I then run it through iexpress & include all 4 files, making sure to remember to tell it cmd /c install.bat for the install line -
http://renegadetech.blogspot.com/2006/0 ... -file.html
http://www.migee.com/2010/09/17/iexpres ... ocess-fix/

At that point you can take the output & just run it, it should be completely unattended & cleanup after itself. Not elegant & no where near as clean as a .MSI, but "good'nuff"....


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests