You are here

Winamp Launcher Only (Test 3)

37 posts / 0 new
Last post
Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Winamp Launcher Only (Test 3)

Application: Winamp
Category: Media
Description: WinAMP (Windows Audio MPEG Player) is a program from Nullsoft that allows PC users to play audio files, particularly music, in many (but not all) popular digital audio formats, including MS-Audio, wav, and MP3.
Instructions: There are instructions for making Winamp work portably in the root folder.

Download Winamp Portable 5.53 Launcher Beta 3 [426KB download / 570KB installed]
(MD5: 9e065a8cbce2574b7b8da91493dc93ad)

This is the first time I've tried any kind of programming so please post any comments.

Release Notes:

Beta 3 (2008-04-04):

  • edited help file to reflect that winamp.ini is not created without running winamp once
  • added winamp folder to app directory

Beta 2 (2008-04-03):

  • added help file
  • changed portablizing document from txt to html

Beta 1 (2008-04-01): Initial release

chevrolet.racing252
Offline
Last seen: 6 years 9 months ago
Joined: 2007-03-06 13:51
Won't launch

When I try to launch WinAmp Portable, I get an error stating that it can't find winamp.exe and to try and re-install. The only variance from the directions is the file path I copied the WinAmp files into from my c: drive. Instead of g:\winampportable\app it was put into g:\PortableApps\WinampPortable\App\. Can you think of a way to correct this in the launcher? Thanks.

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Path

Is winamp.exe located at g:\PortableApps\WinampPortable\App\winamp\winamp.exe or is it g:\PortableApps\WinampPortable\App\winamp.exe?

chevrolet.racing252
Offline
Last seen: 6 years 9 months ago
Joined: 2007-03-06 13:51
Winamp.exe is located

I moved Winamp files into a Winamp sub directory and now the portable Winamp is working properly. I just have to test it on another computer to make sure my pro registration works.

wk
wk's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2007-09-05 12:31
works well,

but your instructions should be amended, with 5.53 the changes in winamp.ini have to be done after the first start. Perhaps winamp should be configured on the local install and after first run copied over into the launcher. Then the winamp.ini changes respecting needreg=o etc can be done.

"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Yeah

Yeah, I think you're right about that. I had already installed winamp and then installed 5.53 over my previous version the instructions said, so I already had the winamp.ini. I go back and edit the directions to reflect this.

powerjuce
powerjuce's picture
Offline
Last seen: 13 years 9 months ago
Developer
Joined: 2007-09-20 21:34
one change...

add the winamp folder so people know where to dump the files

Please search before posting. ~Thanks

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Update

I've updated the launcher to Beta 3. Changes in the original post.

App Guy
Offline
Last seen: 11 years 1 month ago
Joined: 2008-03-16 14:24
I am confused

Not quite sure what to do, if someone could make a video tutorial that would be nice.

What are the gracenotes?

May the Shwartz be with you

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Gracenote is a company that

Gracenote is a company that makes some of the features in Winamp. These features write to the registry and therefore make the program not portable. Just make sure you don't install any of these features and you'll be fine.

App Guy
Offline
Last seen: 11 years 1 month ago
Joined: 2008-03-16 14:24
Yeah, I know

Yeah, I know, but which ones are they.

May the Shwartz be with you

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
If you open up the help

If you open up the help file, it explains exactly what you need to uncheck when you're installing winamp. The Gracenote features are: "CDDB for recognizing CD's" "Playlist Generator" and "Auto-Tagger"

BrianAll
Offline
Last seen: 6 years 5 months ago
Joined: 2008-02-13 13:44
OK,

You've done a pretty good job, but there's a few things you need to fix:

  • You're handling the reg keys the wrong way. That method, which I assume you got from 7-zip, is for keys in branches like HKCU, not HKLM. To write to HKLM, you need special administrator priveledges, so your current method will not work on accounts with lowered priveledges.
  • To get the correct method for dealing with HKLM keys, look at the Eraser Portable launcher.
  • You should be doing something about the settings directory in C:\Documents and Settings\[user]\Application Data\Winamp
  • Also, change VIAddVersionKey LegalCopyright "John T. Haller" to VIAddVersionKey LegalCopyright "PortableApps.com and Contributers".
  • And I *think* you should be including the StrRep.nsh header.
Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Alright,

I was looking at the Eraser launcher and it looks like eraser stores its settings in HKCU whereas Winamp stores its setting in HKLM, so I don't understand how this helps me. I did see the part of the launcher where it was deleting entries from HKLM.

If you installed Winamp the right way (per the instructions) you should not have a folder in Documents and Settings. All settings are stored in the program directory. This could be from a previously installed version of Winamp. The portable version will not effect anything in that folder.

I thought I included StrRep.nsh. I'll make sure it's in the next release.

BrianAll
Offline
Last seen: 6 years 5 months ago
Joined: 2008-02-13 13:44
look

Look for the label BackupHCR in Eraser Portable for the section dealing on the HKLM key.

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
New Code

So I finally got around to redoing the launcher so it handles the HKLM registry entries properly. I've posted the code below. Can somebody take a look at it to make sure it is right before I post a new launcher?

;Copyright (C) 2004-2008 John T. Haller of PortableApps.com
;Copyright (C) 2008 Devo

;Website: http://PortableApps.com/Development/test

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

!define NAME "WinampPortable"
!define PORTABLEAPPNAME "Winamp Portable"
!define APPNAME "Winamp"
!define VER "5.5.3.0"
!define WEBSITE "PortableApps.com/Development/test"
!define DEFAULTEXE "winamp.exe"
!define DEFAULTAPPDIR "winamp"
!define DEFAULTSETTINGSDIR "settings"

;=== Program Details
Name "${PORTABLEAPPNAME}"
OutFile "..\..\${NAME}.exe"
Caption "${PORTABLEAPPNAME} | PortableApps.com"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${PORTABLEAPPNAME}"
VIAddVersionKey Comments "Allows ${APPNAME} to be run from a removable drive.  For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "PortableApps.com"
VIAddVersionKey LegalCopyright "John T. Haller"
VIAddVersionKey FileDescription "${PORTABLEAPPNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${PORTABLEAPPNAME}"
VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${NAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""

;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

; Best Compression
SetCompress Auto
SetCompressor /SOLID lzma
SetCompressorDictSize 32
SetDatablockOptimize On

;=== Include
!include "GetParameters.nsh"
!include "Registry.nsh"
!include "MUI.nsh"

;=== Program Icon
Icon "..\..\App\AppInfo\appicon.ico"

;=== Icon & Stye ===
!define MUI_ICON "..\..\App\AppInfo\appicon.ico"

;=== Languages
!insertmacro MUI_LANGUAGE "English"

LangString LauncherFileNotFound ${LANG_ENGLISH} "${PORTABLEAPPNAME} cannot be started. You may wish to re-install to fix this issue. (ERROR: $MISSINGFILEORPATH could not be found)"
LangString LauncherAlreadyRunning ${LANG_ENGLISH} "Another instance of ${APPNAME} is already running. Please close other instances of ${APPNAME} before launching ${PORTABLEAPPNAME}."
LangString LauncherAskCopyLocal ${LANG_ENGLISH} "${PORTABLEAPPNAME} appears to be running from a location that is read-only. Would you like to temporarily copy it to the local hard drive and run it from there?$\n$\nPrivacy Note: If you say Yes, your personal data within ${PORTABLEAPPNAME} will be temporarily copied to a local drive. Although this copy of your data will be deleted when you close ${PORTABLEAPPNAME}, it may be possible for someone else to access your data later."
LangString LauncherNoReadOnly ${LANG_ENGLISH} "${PORTABLEAPPNAME} can not run directly from a read-only location and will now close."


Var PROGRAMDIRECTORY
Var SETTINGSDIRECTORY
Var ADDITIONALPARAMETERS
Var EXECSTRING
Var PROGRAMEXECUTABLE
Var INIPATH
Var SECONDARYLAUNCH
Var DISABLESPLASHSCREEN
Var FAILEDTORESTOREKEY
Var USERTYPE
Var MISSINGFILEORPATH


Section "Main"
	;=== Check if already running
	System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${NAME}") i .r1 ?e'
	Pop $0
	StrCmp $0 0 CheckINI
		StrCpy $SECONDARYLAUNCH "true"

	CheckINI:
		;=== Find the INI file, if there is one
		IfFileExists "$EXEDIR\${NAME}.ini" "" NoINI
			StrCpy "$INIPATH" "$EXEDIR"
			Goto ReadINI

	ReadINI:
		;=== Read the parameters from the INI file
		ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "${APPNAME}Directory"
		StrCpy "$PROGRAMDIRECTORY" "$EXEDIR\$0"
		ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "SettingsDirectory"
		StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\$0"
	

		;=== Check that the above required parameters are present
		IfErrors NoINI
		ReadINIStr $ADDITIONALPARAMETERS "$INIPATH\${NAME}.ini" "${NAME}" "AdditionalParameters"
		ReadINIStr $DISABLESPLASHSCREEN "$INIPATH\${NAME}.ini" "${NAME}" "DisableSplashScreen"

	;CleanUpAnyErrors:
		;=== Any missing unrequired INI entries will be an empty string, ignore associated errors
		ClearErrors

		;=== Correct PROGRAMEXECUTABLE if blank
		StrCmp $PROGRAMEXECUTABLE "" "" EndINI
			StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"
			Goto EndINI

	NoINI:
		;=== No INI file, so we'll use the defaults
		StrCpy "$ADDITIONALPARAMETERS" ""
		StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"

		IfFileExists "$EXEDIR\App\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" NoProgramEXE
			StrCpy "$PROGRAMDIRECTORY" "$EXEDIR\App\${DEFAULTAPPDIR}"
			StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\Data\${DEFAULTSETTINGSDIR}"
			GoTo EndINI

	EndINI:
		IfFileExists "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" FoundProgramEXE

	NoProgramEXE:
		;=== Program executable not where expected
		StrCpy $MISSINGFILEORPATH $PROGRAMEXECUTABLE
		MessageBox MB_OK|MB_ICONEXCLAMATION `$(LauncherFileNotFound)`
		Abort
		
	FoundProgramEXE:
		;=== Check if running
		StrCmp $SECONDARYLAUNCH "true" GetPassedParameters
		FindProcDLL::FindProc "eraser.exe"
		StrCmp $R0 "1" WarnAnotherInstance DisplaySplash

	WarnAnotherInstance:
		MessageBox MB_OK|MB_ICONEXCLAMATION `$(LauncherAlreadyRunning)`
		Abort
	
	DisplaySplash:
		StrCmp $DISABLESPLASHSCREEN "true" GetPassedParameters
			;=== Show the splash screen while processing registry entries
			InitPluginsDir
			File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"
			newadvsplash::show /NOUNLOAD 1200 0 0 -1 /L $PLUGINSDIR\splash.jpg
	
	GetPassedParameters:
		;=== Get any passed parameters
		Call GetParameters
		Pop $0
		StrCmp "'$0'" "''" "" LaunchProgramParameters

		;=== No parameters
		StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"`
		Goto AdditionalParameters

	LaunchProgramParameters:
		StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0`

	AdditionalParameters:
		StrCmp $ADDITIONALPARAMETERS "" SettingsDirectory

		;=== Additional Parameters
		StrCpy $EXECSTRING `$EXECSTRING $ADDITIONALPARAMETERS`
	
	SettingsDirectory:
		;=== Set the settings directory if we have a path
		IfFileExists "$SETTINGSDIRECTORY\winamp.reg" RegistryBackup
			CreateDirectory $SETTINGSDIRECTORY
			CopyFiles /SILENT `$EXEDIR\App\DefaultData\settings\winamp.reg` $SETTINGSDIRECTORY
	
	RegistryBackup:
		StrCmp $SECONDARYLAUNCH "true" LaunchAndExit
		;=== Backup the registry
		UserInfo::GetAccountType
		Pop $USERTYPE
		${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" $R0
		StrCmp $R0 "0" RestoreSettings
		${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" $R0
		StrCmp $R0 "-1" RestoreSettings
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" $R0
				Sleep 100
	
	RestoreSettings:
		IfFileExists "$SETTINGSDIRECTORY\winamp.reg" "" BackupRun
		IfFileExists "$WINDIR\system32\reg.exe" "" RestoreTheKey9x
			nsExec::ExecToStack `"$WINDIR\system32\reg.exe" import "$SETTINGSDIRECTORY\winamp.reg"`
			Pop $R0
			StrCmp $R0 '0' BackupRun ;successfully restored key
	RestoreTheKey9x:
		${registry::RestoreKey} "$SETTINGSDIRECTORY\winamp.reg" $R0
		StrCmp $R0 '0' BackupRun ;successfully restored key
		StrCpy $FAILEDTORESTOREKEY "true"

	BackupRun:
		${registry::Read} "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" "Winamp" $0 $1
		StrCmp $0 "" BackupHCR
		${registry::MoveValue} "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" "Winamp" "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" "Winamp-BackupByWinampPortable" $R0

	BackupHCR:
		StrCmp $USERTYPE "Guest" StartProgramNow
		StrCmp $USERTYPE "User" StartProgramNow
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\Applications\winamp.exe" "HKEY_LOCAL_MACHINE\Software\Classes\Applications\winamp.exe-BackupByWinampPortable" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Nullsoft" "HKEY_LOCAL_MACHINE\Software\Nullsoft-BackupByWinampPortable" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp3-skin" "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp3-skin-BackupByWinampPortable" $R0	
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-lang" "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-lang-BackupByWinampPortable" $R0	
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-skin" "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-skin-BackupByWinampPortable" $R0	
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\.wlz" "HKEY_LOCAL_MACHINE\Software\Classes\.wlz-BackupByWinampPortable" $R0	
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\.wsz" "HKEY_LOCAL_MACHINE\Software\Classes\.wsz-BackupByWinampPortable" $R0	
			
	StartProgramNow:
		Sleep 100
		SetOutPath $PROGRAMDIRECTORY
		ExecWait $EXECSTRING
		
		StrCmp $FAILEDTORESTOREKEY "true" SetOriginalKeyBack
		${registry::SaveKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" "$SETTINGSDIRECTORY\winamp.reg" "" $R0
		Sleep 100
	
	SetOriginalKeyBack:
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" $R0
		${registry::DeleteValue} "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" "Winamp" $R0
		${registry::MoveValue} "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" "Winamp-BackupByWinampPortable" "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" "Winamp" $R0
		StrCmp $USERTYPE "Guest" TheEnd
		StrCmp $USERTYPE "User" TheEnd
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\Applications\winamp.exe" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\Applications\winamp.exe-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Classes\Applications\winamp.exe" $R0
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Nullsoft" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Nullsoft-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Nullsoft" $R0
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp3-skin" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp3-skin-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp3-skin" $R0		
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-lang" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-lang-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-lang" $R0
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-skin" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-skin-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\interface/x-winamp-skin" $R0
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\.wlz" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\.wlz-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Classes\.wlz" $R0	
		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\.wsz" $R0
		${registry::MoveKey} "HKEY_LOCAL_MACHINE\Software\Classes\.wsz-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\Software\Classes\.wsz" $R0	
		Goto TheEnd
		
	LaunchAndExit:
		Exec $EXECSTRING

	TheEnd:
		${registry::Unload}
		newadvsplash::stop /WAIT
SectionEnd

Thanks

BrianAll
Offline
Last seen: 6 years 5 months ago
Joined: 2008-02-13 13:44
OK...
  • !define VER "5.5.3.0" should be !define VER "1.5.5.0". VER is the launcher version, not the base app version.
  • Change LegalCopyright "John T. Haller" to LegalCopyright "PortableApps.com and Contributors"

Other than that, It looks okay, although I'm not sure until I get home from school this afternoon. Thanks for updating it.

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Version Number

Where does the version number of the actual program go, or is that not necessary?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Not in the launcher

It goes in the appinfo.ini, the readme and the help file but not into the launcher. (I hope I didn't forget a place)

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Got it

Yeah, I think I've got it in all the other places, I just wasn't sure exactly what the version number in the launcher meant

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Can somebody please take a

Can somebody please take a look at the code. I wasn't sure how to handle the HKLM registry entries, but I think I got it. Let me know please so I can update the launcher. I also have a couple of features to add if this is right. Thanks.

solearis
Offline
Last seen: 13 years 11 months ago
Joined: 2008-05-19 15:07
What's the programing language

sorry for such a stupid question, but I would like to ask, in what language is that code written, cause it has a syntax which I had never saw before Smile
thanks

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
The launcher is written in

The launcher is written in NSIS.

bendre
Offline
Last seen: 2 years 4 months ago
Joined: 2006-11-21 22:00
Winamp.reg not working on Win2000 and WinXP

I have created launcher using the new code posted. Everything works fine only issue is that OS registry file is diff for Win2000 and WinXp.

For Windows 2000 the first line is "REGEDIT4" and for WinXP and above OS it is "Windows Registry Editor Version 5.00". Now it seems that if I launch it in win2k registry setting are imported ok but if launched in winxp 2 keys are created HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable which has all settings of reg file from settings folder and HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft which is empty.

It would be better if OS check is done like ver 5.0 and below import winamp.reg and 5.1 and above import winampXP.reg

No other issues seen on this launcher.

lwc
Offline
Last seen: 2 weeks 3 days ago
Translator
Joined: 2006-04-26 06:35
HKCR\MIME\Database\Content Type\interface/x-winamp-skin

I don't think it has anything to do with REGEDIT4, because XP has no problem working with old style reg files' headers.

But here's a real issue - the portable version does not delete "HKEY_CLASSES_ROOT\MIME\Database\Content Type\interface/x-winamp-skin" (no, I have not installed any skin).

I tried to change that in both winamp.reg files, but this change is just ignored. Please re-release it with this key removed as well.

BTW, there's no need to define a registry key if you also define its sub-key.

In other words, the new winamp.reg should contain:
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\interface/x-winamp-skin]
[HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft\Winamp]

No need for also
[HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft]

bendre
Offline
Last seen: 2 years 4 months ago
Joined: 2006-11-21 22:00
Winamp.reg not working on Win2000 and WinXP

you are right XP has no problem with old registry file the issue arises when you launch once on XP Pc and then close it and try to re-run it on 2000 PC. 2000 PC is unable to read new format and re-creates from default data does losing all settings.

lwc
Offline
Last seen: 2 weeks 3 days ago
Translator
Joined: 2006-04-26 06:35
Hooray, it works in v5.54

But why does it leave behind

HKEY_CURRENT_USER\Software\Winamp
HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft
?

Also, your instructions never mention whether or not we should run the uninstallation (UninstWA.exe) in the original folder.

Update: I've answered all of the above.

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Somebody to Take Over Development

I've recently run into a lot of work and haven't been able to continue the development of this. I am looking for someone to take this over. There are a few things I planned to add to the launcher but never got around to doing.

1. Backup Winamp.ini into the Data folder
2. Backup the skins directory into the Data folder
3. Backup the media library into the Data folder

There are also some reg entries that were never backed up/deleted.

If someone would like to take this over, feel free. All the files are included in the launcher at the top (Test 3). Just post a message somewhere letting me know that you will take it over so I know and I can send you any files you would like.

-Devo

chevrolet.racing252
Offline
Last seen: 6 years 9 months ago
Joined: 2007-03-06 13:51
Will Development continue??

I really like this launcher since I am a long-time user of WinAmp Pro. If I was familiar with programming and NSIS I would continue development, but I just really like the launcher. Does anyone know what kind of problems I may run into if I try the included instructions with a newer version (to upgrade my portable installation)? Winamp has released a few bug fixes that I am interested in and the new artist now playing window that I would like to have on my portable but I have held off to see if anyone was going to continue development before I started "trying" different things. Any help or information would be greatly appreciated.

Devo
Offline
Last seen: 1 year 4 weeks ago
Joined: 2007-09-04 14:55
Should be ok...

I'm pretty sure the new version will work with this launcher. Not much has changed in the way Winamp handles it's settings and the registry.

As stated above though, some registry entries will be left on the host machine. These do not have any personal information, but they will let anyone know that Winamp has been used on the computer. They are entries for file types. If you are ok with this then the new version should work just like the old version did.

Again, if there is anybody who would like to pick up development for this please feel free to do so.

lwc
Offline
Last seen: 2 weeks 3 days ago
Translator
Joined: 2006-04-26 06:35
Here's a new version (5.5.3.1) - tested with Winamp 5.57

I'd like to take over.

Here's a version that uses the new 1.0 format:

Beta 4 (2009-12-21):

  • 1.0 format.
  • Improved help file.
  • Deleting the registry instead of exporting it.

    Most importantly, it deletes the registry winamp.exe leaves behind instead of exporting it. Exporting it served nothing at all. Now it just uses your PRO details (if you have such, and saved them according to the HTML file), and back ups Winamp's main key in case the computer at hand already has its own Winamp (which you don't want to ruin, in case the other Winamp is a PRO version).

    http://rapidshare.com/files/324030392/WinampPortable_5.5.3.1.paf.exe.html - 465 Kb

    P.S.
    1) The aforementioned Skin registry key is no longer created by Winamp, so it's no longer a problem.
    2) The aforementioned HKCU key is created by Winamp's installer and not by Winamp itself. So it's okay that it's not covered. BTW, their installer also creates CDDB registry keys even if you don't install CDDB (like the HTML asks you not to).
    3) As for the uninstallation (UninstWA.exe) - yes, use it eventually. Otherwise the original installation will leave (even more) leftovers.

  • Mark Sikkema
    Offline
    Last seen: 13 years 2 months ago
    Developer
    Joined: 2009-07-20 14:55
    Somebody all ready took over the project !

    Since PA.c is doing freeware lately, and got a license to distribute Winamp.
    I (re)started development !

    Winamp Portable Dev.test 4

    This version does update the Media Library !!!

    (sorry Devo about the way I hijacked this! But as John mentioned they had a license and I could have a go on it, I assumed that it wasn't under development)

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    lwc
    Offline
    Last seen: 2 weeks 3 days ago
    Translator
    Joined: 2006-04-26 06:35
    Read the name of this project

    It's not the same project. The launcher here is supposed to work with any future Winamp version because it's not hardcoded with Winamp (thus allowing you to download Winamp however you like and in advance). It also takes less than 1M because of it.

    Anyone is welcome to make their choice between the two.

    PaulAlien
    Offline
    Last seen: 14 years 7 months ago
    Joined: 2010-04-12 17:48
    tested

    so far so good, thanks...

    Some notes, I got this to work using this procedure:

    I used the information on the x:/PortableApps/WinampPortable/portablizing.html page and the comments on this and related posts.

    *I downloaded the launcher from http://rs172.rapidshare.com/files/324030392/WinampPortable_5.5.3.1.paf.exe and installed it like other apps in the portable apps options menu. That sets up all the folders needed to add the winamp files in the x:\PortableApps\WinampPortable\App\winamp folder.

    *I then downloaded the latest version of winamp and installed it on my home computer.

    *copied the C:\Program Files\WinampPortable\App\winamp contents directly to the portable folder above.

    *set up as per portablizing help page, changed the "winamp.ini" file, but it did not contain NeedReg=1 or IsFirstInst=1 in the [WinampReg] section and no_registry=0 in the [Winamp] section (just added the suggested changes to the file).

    *Uninstalled winamp from my computer.
    *Deleted tons of reg winamp.* entries in the HKEY_CLASSES_ROOT\ directory and looked in the other places mentioned.
    *changed computers, launched winampportable, changed path for the usb drive in winamp, the player works

    I crashed it once (at home) clicking on the browser tab (not sure why, I unchecked the ie box during set up and left firefox checked). It said windows or ie has detected a threat and crashed winamp. I went to the winamp options and selected not connected to the internet option in the general preferences section. Clicked on the browser tab again (on a different computer) and it pulled up an aol mp3 page, hmmm...

    Get cannot find decoder on ripping. Have to check files.

    John T. Haller
    John T. Haller's picture
    Online
    Last seen: 40 min 12 sec ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Discontinued

    This launcher is discontinued. The new release is over here:
    https://portableapps.com/node/21211

    Sometimes, the impossible can become possible, if you're awesome!

    PaulAlien
    Offline
    Last seen: 14 years 7 months ago
    Joined: 2010-04-12 17:48
    thanks

    thanks, I will use that

    Mark Sikkema
    Offline
    Last seen: 13 years 2 months ago
    Developer
    Joined: 2009-07-20 14:55
    Link is back up...

    https://portableapps.com/node/21211
    But read the notes about the keys it could leave !!!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Log in or register to post comments