PortableApps.com Platform and Suite 1.6 have been released.

AdditionalParameters not working in VLCPortable.nsi

Submitted by rpmohn on December 30, 2008 - 11:57am

The AdditionalParameters var set in VLCPortable.ini doesn't seem to work. I checked the VLCPortable.nsi file and the var is set, but never used. I believe it should be passed at the end of the $EXECSTRING (on lines 188 & 192 of my .nsi file). Haven't looked into how to compile .nsi files yet so could someone please fix and post?

Thanks! -Ross


( categories: )

OK, I compiled the fix for

OK, I compiled the fix for myself and it works! Please make this change in the next upgrade to VLC.

Thanks for the great PortableApps platform!

-Ross

you actually enter the

you actually enter the additional parameters into vlcportable.ini in the additionalparameters part there. and then move the ini file to where the vlcportable.exe is located.

I'm sold! Anything that can compute and warm my coffee is total awesome. - OliverK

$Additional Parameters variable not used

Yes, except that it doesn't work in the current release because the $AdditionalParameters variable isn't passed to $EXECSTRING in the VLCPortable.nsi file! Here's the patch that fixes the problem. I hope it is included in the next release!

--- VLCPortable.000.nsi 2008-12-31 11:51:38.000000000 -0500
+++ VLCPortable.nsi     2008-12-30 10:50:16.000000000 -0500
@@ -185,11 +185,11 @@ Section "Main"
                StrCmp "'$0'" "''" "" LaunchProgramParameters
 
                ;=== No parameters
-               StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" --vlm-conf "$SETTINGSDIRECTORY\vlcrc" --no-plugins-cache --config "$SETTINGSDIRECTORY\vlcrc"`
+               StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" --vlm-conf "$SETTINGSDIRECTORY\vlcrc" --no-plugins-cache --config "$SETTINGSDIRECTORY\vlcrc" $ADDITIONALPARAMETERS`
                Goto AdjustSettings
 
        LaunchProgramParameters:
-               StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0 --vlm-conf "$SETTINGSDIRECTORY\vlcrc" --no-plugins-cache --config "$SETTINGSDIRECTORY\vlcrc"`
+               StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0 --vlm-conf "$SETTINGSDIRECTORY\vlcrc" --no-plugins-cache --config "$SETTINGSDIRECTORY\vlcrc" $ADDITIONALPARAMETERS`
        
        AdjustSettings:
                StrCmp $SECONDARYLAUNCH "true" LaunchAndClose

Cheers! -Ross

What's the problem with the NSIS compiler?

I've just made the changes to the code, but compliler doesn't seem to process the source. It doesn't know what to do with newadvsplash function. What is the right version of compiler for this case? Or the problem is with libs?

Plugins

You need some NSIS-Plugins to compile the code. (e.g. NewAdvSplash plugin).