MSFN Forum: vlc 9 config options? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

vlc 9 config options? Rate Topic: -----

#1 User is offline   phaolo 

  • Member
  • PipPip
  • Group: Members
  • Posts: 151
  • Joined: 12-March 07

Posted 26 September 2008 - 01:45 AM

Hello, I'd like to silently install Vlc09, but I need to import options.
The program unfortunately uses the Nullsoft setup, so zero configuration.

I'm expecially interested in file associations, as the player automatically gets control of all of them :blink:
Are they stored inside vlc-qt-interface.ini?

I don't think deleting registry entries is a good solution as it will remove previous programs.
Putting Vlc setup as last in RunOnceEx is a poor compromise too.
What can I do then?


#2 User is offline   jjvs 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 21-June 05

Posted 26 September 2008 - 05:02 AM

Hi phaolo,

Sometime ago I created a little batch file to restore some of the VLC file association to there previous values

The usage:
VLC_Extension.cmd [.extension1] [.extension2] [...]

example: VLC_Extension.cmd .wav .wmv .asf .ts .ps

Here it the code:
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS

FOR %%K IN (%*) DO @(

  REM Reset variables
  SET VLC_Backup=
  SET EXT_ASSOC=

  REM Check for a backup value
  FOR /F "SKIP=4 TOKENS=3" %%F IN ('REG QUERY "HKCR\%%K" /V VLC.backup 2^>NUL') DO @SET VLC_Backup=%%F

  REM Get current file association value
  FOR /F "SKIP=4 TOKENS=4" %%F IN ('REG QUERY "HKCR\%%K" /VE 2^>NUL') DO @SET EXT_ASSOC=%%F

  REM Check if a backup value is available
  IF NOT "X!VLC_Backup!"=="X" (
	REM Check if VLC is still associated with the file extension, if true 
	REM restore the old value
	IF "!EXT_ASSOC!"=="VLC!EXT_ASSOC:VLC=!" REG ADD "HKCR\%%K" /VE /D "!VLC_Backup!" /F
	REM delete VLC.backup anyway
	REG DELETE "HKCR\%%K" /V VLC.backup /F
  ) ELSE (
	REM Check if VLC is still associated with the file extension, if true 
	REM remove it
	IF "!EXT_ASSOC!"=="VLC!EXT_ASSOC:VLC=!" REG DELETE "HKCR\%%K" /VE /F
  )
)


This batch file does check the current file association, if it's still associated with VLC it will restore it's
previous association, or remove any association if there wasn't any before. Otherwise nothing is done.

Good luck.

#3 User is offline   phaolo 

  • Member
  • PipPip
  • Group: Members
  • Posts: 151
  • Joined: 12-March 07

Posted 26 September 2008 - 02:36 PM

Woa! Almost unknown dos programming lol.
Too bad that VLC team didn't think at an unattended mode.

Well I'll try your cmd, thank you for the code :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy