You are here

[outdated]Winamp Portable 5.572 development test 3

88 posts / 0 new
Last post
Mark Sikkema
Offline
Last seen: 13 years 1 month ago
Developer
Joined: 2009-07-20 14:55
[outdated]Winamp Portable 5.572 development test 3

Application: Winamp
Category: Music & Video
Description: Winamp is an a feature rich and easy-to-use media player.

Due to the total rewrite of the launcher I've started a new thread Winamp Portable 5.581 available here

Winamp Portable 5.572 Development Test 3 online [830KB download / 53.8MB installed]
(MD5: 8a8d590695e516cdb44a4462543d963d)
Link is backup, but keep in consideration that Winamp Portable will leave the following keys whenever the user opens 'Options/Preferences/File Types/Shell Options' !

HKLM\SOFTWARE\Classes\CLSID\{46986115-84D6-459c-8F95-52DD653E532E}\LocalServer32
HKLM\SOFTWARE\Classes\CLSID\{77A366BA-2BE4-4a1e-9263-7734AA3E99A2}\LocalServer32
HKLM\SOFTWARE\Classes\ICY
HKLM\SOFTWARE\Classes\SC
HKLM\SOFTWARE\Classes\SHOUT
HKLM\SOFTWARE\Classes\UNSV
HKLM\SOFTWARE\Classes\UVOX
HKLM\SOFTWARE\Classes\winamp
HKLM\SOFTWARE\Classes\Winamp.File
HKLM\SOFTWARE\Clients\Media\Winamp
HKCU\Software\Netscape\Netscape Navigator\Viewers\interface/x-winamp-skin
HKCU\Software\Netscape\Netscape Navigator\Viewers\interface/x-winamp-lang

I will (try to) find a solution for this, soon

Release Notes:

  • Development Test 3 (2010-03-06): online-installer
    • Features added:
      • Set default to replacing drive letter, instead of rescan on startup
      • Updated the EULA
      • Some minor improvements to the script
  • Development Test 2 (2010-02-21): online-installer
    • Features added:
      • Decision made to keep the Skins directory within App\Winamp
      • updated NewTextReplace_v0.4
      • Simplified / cleaned-up the launcher script
    • Bug fixed: Issue with the command-line parameters not coming trough.
  • Development Test 1 (2010-01-30): online-installer
    • Features added:
      • updated to Winamp 5.572
    • Bug fixed: THE LAST DEV.TEST DIDN'T WORK, FORGOT TO INCLUDE THE INSTALLER'S CUSTOM CODE
  • Development Test 2 (2010-01-16): online-installer
    • Features added:
      • NewTextReplace plugin added, for UTF-16 drive letter replacing
    • Bug fixed: A better way of saving the redirected Desktop, based on AppDataRedirect.nsh.
  • Development Test 1 (2010-01-10): online-installer
    • Features added:
      • Updated to Winamp 5.571, this version seems to have a lot of previous issues fixed.
      • Therefor the launcher script could be & is simplified a lot.
      • The MediaLibrary rescan at startup by Winamp works again, so there is no need to update the MediaLibrary drive-letter anymore.
      • The UserProfile folder of the userprofile redirection will be deleted at startup, although it should/will save the redirected Desktop folder, in-case you saved your files there.
      • Used PortableApps.comInstaller 1.0.2, which solves the extraction issue.
    • Bug fixed: additional parameters in WinampPortable.ini fixed (again), should work now with relative path. This has been a real issue, but I think I got the hang of it for this release.
    • Notes: Probably you are better off to delete the Data\settings folder yourself, to get all the new settings through.
    • Issues: pmp_usb.dll does leaves some files on the root of USB-drives, after you press YES for Winamp to manage your Portable music player. Just blacklist them by pressing NO, for an ordinary usb-drive. The main usb-drive is blacklisted by default.
  • Development Test 4 (2009-12-06): online-installer
    • Features added:
      • Got the Big Bento skin to extract properly.
      • Ability to play the main playlist at start-up.
      • Added redirection of USERPROFILE (you can switch it off in the ini file)
      • Big Bento gets extracted. (the other skins aren't possible for the moment)
      • And last but not least, added unicode support.
  • Development Test 3 (2009-11-21):
    • Features added:
      • FrogASPI.dll added, for cd-ripping functionality. Thanx to French Frog.
      • Automatic removal of local files, handled by the launcher (WinampPortable.ini option).
      • Automatic media library,removal of local files, handled by the launcher (WinampPortable.ini option).
      • Added Output path to Data folder, which Winamp uses to save CD-rips, converted files, etc.
      • A couple of more files being updated for drive letter.
      • Remembering last system drive serial number, so even if using a new PC which gives the same drive letter, media library will be updated.
      • Winamp Pro is supported.
    • Bugs fixed:
    • Development Test 2 (2009-11-03):
      • Features added:
        • Language fix, in order it to correspond to the PAM (installing of new languages is possible).
        • Skins are located in Data folder instead of settings folder, as well they could be located in the DefaultData folder. Installing of new skins is possible.
        • Got rid of save the whole last path, last drive letter was enough!
      • Bug fixed:
        • No bugs were reported jet
        • Automatical removal of missing files is broken in Winamp itself(please use Library button menu item for now instead)
    • Development Test 1 (2009-10-29): Initial release

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Applied

    I actually applied for this about 6 months ago in anticipation of doing it once we did freeware here. Unfortunately, I can't find my old code (it was only about 20% done anyway), so if you've got the time to do this and do it fast, you're welcome to take a stab at it Smile

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Do it fast???

    Fast is relative.

    As fast as I can do is:
    First of all have to tell you, I also need to spend some time on my study, but I will do all my best to do this fast!
    I could use my standard universal launcher I use for all my portable apps at home, which is based on Karl Loncarek's Portable application template, but modified a lot so it doesn't save the regkeys to the data folder, and updates the drive letter, etc.
    I have been using my home made WinAmpPortable for a while now. It does update play list and seems to work fine.

    But probably it still needs testing.

    Anyway, I will strip it down and take out the useless parts of code. Which probably could be ready for testing by Monday morning. It isn't a very complicated app to make portable as I can remember.

    All I wonder now is:

    Will I make the lite or full verion (I personaly prefer the full, but probably lite will be faster to code)
    Do I make just the launcher or did you mean you have the full license to include WinAmp it self.

    Never made just a launcher before, till yesterday I gave it a try and included the installer.ini in the default data folder

    [DownloadFiles]
    DownloadURL=http://download.nullsoft.com/winamp/client/winamp556_lite_all.exe
    DownloadName=Winamp Installer
    DownloadFilename=winamp556_lite_all.exe
    DownloadMD5=d2a2e5aa45511c590e0e512de1809517
    AdditionalInstallSize=29315
    
    AdvancedExtract1To=App\WinAmp
    AdvancedExtract1Filter=*
    

    It did download the file, but after download it gave me a standard error message.
    All I could think is the MD5 was wrong?

    Thanx Jonh, I feel honored to be the one makeing this and won't let you down.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Ps: Today I could even send the one I use now!

    Just to see what you think and what really needs to be modified.
    I have been using version 5.541, so that would be what I could send for now.

    I am quit sure it is acting like it should by the PA format.

    These are going to be sleepless nights!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Devo
    Offline
    Last seen: 1 year 1 week ago
    Joined: 2007-09-04 14:55
    Extraction

    I think you're problem with the extraction isn't the MD5, it's the fact that it's not a normal extraction. You can't extract the installer with 7-zip, I had to use UniversalExtractor in order to extract it properly. You might want to see if you can get permission from Winamp to include it in the PortableApps.com package.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I did get it extracted using 7-ZipPortable

    I assume that it could just be extracted within the PA installer using the 7-zip.exe!
    Just been getting folders with $0 and $[48] names, once I get the installer to extract it I could get the launcher or installer to reorder/rename the folders, it seems that all files we need are in the extraction.

    About including it, John told me he has a Distribution license of winamp, so I imagine that it could be included. Still didn't get a straight answer of John about this.

    For me this is one of the last issues though, first I have to get the drive letter update of the media-library file working. It is in progress...and I give it a good change I could fix it!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Devo
    Offline
    Last seen: 1 year 1 week ago
    Joined: 2007-09-04 14:55
    Code for launcher

    I wrote a launcher for this awhile back and it's somewhere in the forums. It does everything it's supposed to I think. The only functionality it's missing is the ability to change the drive letter for files in the media library.

    Here's the code if you want it:

    ;Copyright (C) 2004-2008 John T. Haller
    ;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 PORTABLEAPPNAME "Winamp Portable"
    !define NAME "WinampPortable"
    !define APPNAME "Winamp"
    !define VER "5.5.3.0"
    !define WEBSITE "http://PortableApps.com/Development/test"
    !define DEFAULTEXE "winamp.exe"
    !define DEFAULTAPPDIR "winamp"
    !define DEFAULTSETTINGSPATH "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 "Registry.nsh"
    !include "GetParameters.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 DISABLESPLASHSCREEN
    Var ISDEFAULTDIRECTORY
    Var SECONDARYLAUNCH
    Var FAILEDTORESTOREKEY
    Var MISSINGFILEORPATH
    
    
    Section "Main"
    	;=== Check if already running
    	System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${NAME}2") i .r1 ?e'
    	Pop $0
    	StrCmp $0 0 CheckForINI
    		StrCpy $SECONDARYLAUNCH "true"
    
    	CheckForINI:
    	;=== 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 $0 "$INIPATH\${NAME}.ini" "${NAME}" "AdditionalParameters"
    		StrCpy "$ADDITIONALPARAMETERS" $0
    		ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "${APPNAME}Executable"
    		StrCpy "$PROGRAMEXECUTABLE" $0
    		ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "DisableSplashScreen"
    		StrCpy "$DISABLESPLASHSCREEN" $0
    
    	;CleanUpAnyErrors:
    		;=== Any missing unrequired INI entries will be an empty string, ignore associated errors
    		ClearErrors
    
    		;=== Correct PROGRAMEXECUTABLE if blank
    		StrCmp $PROGRAMEXECUTABLE "" "" CheckForProgramINI
    			StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"
    			Goto CheckForProgramINI
    			
    	CheckForProgramINI:
    		IfFileExists "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" FoundProgramEXE NoProgramEXE
    
    	NoINI:
    		;=== No INI file, so we'll use the defaults
    		StrCpy "$ADDITIONALPARAMETERS" ""
    		StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"
    		StrCpy "$DISABLESPLASHSCREEN" "false"
    
    		IfFileExists "$EXEDIR\App\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" NoProgramEXE
    			StrCpy "$PROGRAMDIRECTORY" "$EXEDIR\App\${DEFAULTAPPDIR}"
    			StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\Data\${DEFAULTSETTINGSPATH}"
    			StrCpy "$ISDEFAULTDIRECTORY" "true"
    			GoTo FoundProgramEXE
    
    	NoProgramEXE:
    		;=== Program executable not where expected
    		StrCpy $MISSINGFILEORPATH $PROGRAMEXECUTABLE
    		MessageBox MB_OK|MB_ICONEXCLAMATION `$(LauncherFileNotFound)`
    		Abort
    		
    	FoundProgramEXE:
    		;=== Check if already running
    		StrCmp $SECONDARYLAUNCH "true" CheckForSettings
    		FindProcDLL::FindProc "$PROGRAMEXECUTABLE"                 
    		StrCmp $R0 "1" WarnAnotherInstance CheckForSettings
    
    	WarnAnotherInstance:
    		MessageBox MB_OK|MB_ICONINFORMATION `$(LauncherAlreadyRunning)`
    		Abort
    	
    	CheckForSettings:
    		IfFileExists "$SETTINGSDIRECTORY\*.*" SettingsFound
    		;=== No settings found
    		StrCmp $ISDEFAULTDIRECTORY "true" CopyDefaultSettings
    		CreateDirectory $SETTINGSDIRECTORY
    		Goto SettingsFound
    	
    	CopyDefaultSettings:
    		CreateDirectory "$EXEDIR\Data"
    		CreateDirectory "$EXEDIR\Data\settings"
    		CopyFiles /SILENT $EXEDIR\App\DefaultData\settings\*.* $EXEDIR\Data\settings
    		GoTo SettingsFound
    
    	SettingsFound:
    		StrCmp $DISABLESPLASHSCREEN "true" GetPassedParameters
    			;=== Show the splash screen before processing the files
    			InitPluginsDir
    			File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"	
    			newadvsplash::show /NOUNLOAD 1500 200 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 "" RegistryBackup
    
    		;=== Additional Parameters
    		StrCpy $EXECSTRING `$EXECSTRING $ADDITIONALPARAMETERS`
    
    	RegistryBackup:
    		StrCmp $SECONDARYLAUNCH "true" LaunchAndExit
    		;=== Backup the registry
    		${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" $R0
    		StrCmp $R0 "0" RestoreTheKey
    		${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" $R0
    		StrCmp $R0 "-1" RestoreTheKey
    		${registry::MoveKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" $R0
    		Sleep 100
    		
    	RestoreTheKey:
    		IfFileExists "$SETTINGSDIRECTORY\winamp.reg" "" LaunchNow
    	
    		IfFileExists "$WINDIR\system32\reg.exe" "" RestoreTheKey9x
    			nsExec::ExecToStack `"$WINDIR\system32\reg.exe" import "$SETTINGSDIRECTORY\winamp.reg"`
    			Pop $R0
    			StrCmp $R0 '0' LaunchNow ;successfully restored key
    
    	RestoreTheKey9x:
    		${registry::RestoreKey} "$SETTINGSDIRECTORY\winamp.reg" $R0
    		StrCmp $R0 '0' LaunchNow ;successfully restored key
    		StrCpy $FAILEDTORESTOREKEY "true"
    	
    	LaunchNow:
    		Sleep 100
    		ExecWait $EXECSTRING
    		
    	CheckRunning:
    		Sleep 1000
    		FindProcDLL::FindProc "${DEFAULTEXE}"                  
    		StrCmp $R0 "1" CheckRunning
    		
    		StrCmp $FAILEDTORESTOREKEY "true" SetOriginalKeyBack
    		${registry::SaveKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" "$SETTINGSDIRECTORY\winamp.reg" "" $0
    		Sleep 100
    	
    	SetOriginalKeyBack:
    		${registry::DeleteKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" $R0
    		Sleep 100
    		${registry::KeyExists} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" $R0
    		StrCmp $R0 "-1" TheEnd
    		${registry::MoveKey} "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft-BackupByWinampPortable" "HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft" $R0
    		Sleep 100
    		Goto TheEnd
    		
    	LaunchAndExit:
    		Exec $EXECSTRING
    	
    	TheEnd:
    		${registry::Unload}
    		newadvsplash::stop /WAIT
    SectionEnd
    
    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Thanx a lot Devo

    I will have a look at it.

    I probably will do a way with my own universal template anyway.
    Starting of clean is probably the best for a release on PA.c!

    Modifying the files for the media library & playlist I`ve done before and isn`t a problem.

    Hope to get some answer about, if I have to it launcher only or not.

    Anyway, think for test version will be published well before Monday, I had a look at it all, and WinAmp is allmost portable by it self.

    There is one reg key, what I know about, what is writen but empty. Allthough I remember reading about some regkeys for the skins and visualization I`m not sure about. Have to search the winamp forum.

    Any body knows about these reg keys???

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Straight NSIS

    I think we'd rather stick to straight NSIS based on our existing launcher code than the universal template... the code will be simpler... and it will be easier to switch to our universal launcher when done.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I will John

    I started to use the template I got of Devo as a base.
    I think it is that what you mean by:

    stick to straight NSIS based on our existing launcher code

    Anyway, could you tell me if I should make it as a launcher-only or complete packaged PA ???

    I think (since I never made a launcher-only) I have to get the launcher to re-order/rename the folders after the PA-installer downloaded/extracted the winamp-installer. Cause I end up with wierd foldernames like "$0"?

    Sure I will be ready well before Monday with a test version!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    digitxp
    digitxp's picture
    Offline
    Last seen: 13 years 1 month ago
    Joined: 2007-11-03 18:33
    Speaking Of...

    Is there any possibility that the launcher could implement the LogicLib because in the year that I was gone, I learned C and a bit of Python. Oh my gosh, my head gets caught up in all the spaghetti code.

    Insert original signature here with Greasemonkey Script.

    Devo
    Offline
    Last seen: 1 year 1 week ago
    Joined: 2007-09-04 14:55
    A couple more things

    I probably should have looked at this before I posted it. All this does is backup the pertinent registry entries. There are a couple of other things it should do as well:

    1. Move Winamp.ini from /WinampPortable/App/winamp/ to /WinampPortable/Data/settings
    2. Move the media library from /WinampPortable/App/winamp/ to /WinampPortable/Data/settings
    3. Move the winamp playlists from /WinampPortable/App/winamp/ to /WinampPortable/Data/settings
    4. Move the skins folder from /WinampPortable/App/winamp/ to /WinampPortable/Data/settings
    5. Update the media library with the current drive letter.

    With regards to the media library: I had tried to figure out how to update the media library, but it is stored in a proprietary format and I couldn't figure out how to edit it. I would say if you can get all the things above done and Winamp allows you to package the program, or you can figure out how to properly extract a live installer you're good to go.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Thanx, I`m working on it!

    About Winamp.ini and winamp.m3u(8)=playlist, they don`t have to be moved the way I have configured it. Standard they will be in Data\settings, cause $PROGRAMDIR\path.ini will be updated to the right Data\settings path (it won't take a relative path), this way WinAmp uses the Data\settings dir it self!

    About the media library, I am not sure for now. I have been just using the playlist editor my self. That is the winamp.m3u that is no problem to update drive letter.

    Could you tell me what you know about the media library settings, where does it store it?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Found medialibrary settings, should not be a problem!

    I found gen_ml.ini, which just has a simple root to update

    and main.dat, which is an odd file, but I have got some experience with updating these files, will try it with the usual ReplaceInFileWithTextReplace.nsh first, otherwise I just made some macro the other day which can deal with these files!

    See this link:
    ReplaceInFile problems

    Will test it now

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Have to finish for now, till Thursday

    Basically got the launcher working as Devo suggested, just have to do some work on the medialibrary update. Again it is a different kind of file as where my ReplacePathInFile.nsh was based on. Tried adjusting original code, and got it work partly.
    But, probably it will be better to make a new Macro of scratch, that way it will do it's work faster as well. Pretty important I guess since a medialibrary could be pretty big.

    A kind of nice feature I found out is that the new WinAmp version seems to have relative paths in just the playlist file.(but that used to be the easy one to update)

    As well haven't got around testing moving the skins folder jet, but I do not expect any problems there.

    Anyway, on Thursday I will have a day off and go on with this project!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Not sure what is the official way of submiting test release ?

    But really happy I got it done this fast.

    I`m ready for little break of my laptop, and do the normal things in life!

    Please send my any critic about this release, and I see what I can modify !!!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Got it moved to the beta testing forum

    I tried (a little bit) to register the encoder dll's, for cd-ripping. But didn't work.

    Does anybody have more experience with this, and would doing this be 'Portable' ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    Heads up!

    Your Application: Winamp links to taskcoach.org.

    Could you also link to the download page for winamp so people don't have to google it? Thansk!

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I am not sure when it does link to taskcoach?

    Probably you mean when you run the PA installer.
    It doesn't link to anything jet, cause extracting winamp installer doesn't work for the moment. You have to download it your self.

    I will not spend any time trying to fix this, till I get an answer of John if I can include Winamp or it has to stay being a launcher-only.

    For installing, read the explanation in the top section of this page!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    "Application:

    "Application: Winamp
    Category: Music / Video
    Description: Winamp is an a feature rich and easy-to-use media player.

    Download Winamp Portable 5.56 Launcher-only Development Test 1 [397KB download / 328KB installed]
    (MD5: f9495809342f040fd7ed50e83b9d9b62)"

    "Application: Winamp" links to taskcoach.org

    but I see now that you fixed it.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I am not sure if I fixed it or not, but anyway it is good now

    Could you please tell me if you tested Winamp Portable ?

    I need some feedback about it !!!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Fixed cd-ripping functionality

    Using Frog replacement of wnaspi32.dll, http://www.frogaspi.org/. It's freeware !
    Located it in App\Winamp, after cd-ripping worked fine !
    Just doesn't have windows 9x support, according to their website.

    Did anybody else have the same problem ? Should I include this in next dev test ?

    Guys I need some feed back on this app.

    As well have a problem on a limited account. The skin folder won't move/rename when it is running from a local hard disk. Is this normal?
    The same happens if I run it in sandboxie.

    Maybe it would be better if the launcher deletes & copies instead of move/rename, the skin folder to App\Winamp ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    New development test 2, sorry no skins!

    New test version, please send me any bugs or thing what could be modified.

    Sorry, I know about the Skins folder, will get that sorted for next time!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    The MAZZTer
    The MAZZTer's picture
    Offline
    Last seen: 1 year 10 months ago
    Developer
    Joined: 2006-11-17 15:31
    Protip: You can compress the

    Protip: You can compress the default Winamp Modern, Bento, and Big Bento skins into ZIPs that have .wal extensions to save on disk space.

    I do that for my portable Winamp.

    Signature automatically removed for being too awesome.

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    the online installer is

    the online installer is terrible...

    All I get is a bunch of "cannot open file" in a window that pops up after the installer gets it online. (admin rights, XP Proffessional)

    Then AFTER the installer says its done, I click the exe and it says winamp.exe cannot be found!

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Manual

    Do it manually. We'll be bundling Winamp itself in the actual release. We're just testing the launcher.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Did you have 7-Zip Portable installed?

    Read the 'How to install' section above!

    Anyway, I thought it was quite genius to do it this way, but probably I was gambling to much.

    I will add a launcher only within 24 hours(shouldn't be much work)

    Ps.: Myself I'm also using windows XP pro sp3 !?!?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    yes. I don't think that the

    yes.

    I don't think that the installer should have to depend on that though to install.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I couldn't get it extracted the ordinary way !

    So this was the only solution, for now ! Eventually, I could include 7-zip in the installer it self!

    Anyway, I added the launcher-only as well

    I wonder if anybody else had the same error as you did ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    dougakins
    Offline
    Last seen: 5 years 3 months ago
    Developer
    Joined: 2009-08-17 09:34
    Will be testing

    I have been using the normal version of winamp that was modified per some instructions I found to be "portable". I had issues with it hanging up from time to time where it would just freeze for 15 - 30 seconds. It became annoying so I stopped using it.

    This look promising though so I'll be testing your version and will let you know what I come up with.

    dougakins
    Offline
    Last seen: 5 years 3 months ago
    Developer
    Joined: 2009-08-17 09:34
    Still hangs up

    I've notices that Winamp still hangs up from time to time, usually when it's switching to a new song. The interfaces freezes anywhere from 5 - 20 seconds, sometimes when a song is playing, sometimes before it starts. I don't think this really has to do with the fact that it's running portably, and more with the fact that it's playing mp3s that are on an external drive.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Maybe get info on winamp forum ?

    I haven't experienced this problem, but haven't been using winamp (portable) on an external drive much.

    You could have a try moving pmp_usb.dll to WinampPortable\Winamp\Plugins\ folder !
    It's a plugin which gives some extra control of usb devices, it does some odd things though, but maybe it works for you.

    Did the Download-installer work for you ? Then pmp_usb.dll should be located in WinampPortable\ExtraFiles\ folder.

    Thanx for the feedback !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Devo
    Offline
    Last seen: 1 year 1 week ago
    Joined: 2007-09-04 14:55
    What are your questions?

    You need to save the .reg file. That is where the license information is stored, so if you buy Winamp Pro, your registration information is saved in the .reg file. This is important! There may be a few other registry entries I'm missing, so you might want to check again just to make sure.

    Also, you need to backup and restore the winamp registry entries in case the computer you are running it on already has winamp installed. That way the native winamp will retain its settings.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Ok, that clears it up !

    Hi Devo,

    Didn't think about the registration of pro (jet), have to check what extras will be in the pro version. Will it be compatible with this launcher ?

    Did you have a look at the script ?

    1. I didn't figure out jet what $ISDEFAULTDIRECTORY is for ? I would think, even if there is an portable.ini, it should still copy DefaultData (if necessary)!

    2. Is the following structure still supported $EXEDIR\WinampPortable\App\Winamp ?

    3. Did the download-installer work for you ?

    Thanx for the feedback !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Ignore Pro

    We're going to ignore pro for now as our license doesn't cover it.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    But what if some user has a license and registers winamp pro?

    Shouldn't the launcher be able to cope with it ?

    or should the launcher disable it ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    True

    You're right. I thought it was a sep product.

    Be sure and backup/restore the registry entries. You can snag code from 7-Zip Portable or any of our other apps that do it.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Progress update

    Have been doing some extensive usage of all the options in Winamp (portable) ! There is quite a few options!

    Some of my findings:

    Registry:
    Found some registry entry, which winamp deletes the values of, but leaves empty keys behind. HKEY_CURRENT_USER\Software\Winamp\omBrowser

    Driveletter update:
    Some more files (some playlist *.m3u8, ml_transcode.ini & rss.xml files) to do a drive letter update ! The medialibray>playlists update could get a little complicated, cause after removing a playlist from the library in winamp, it still phisically exists in medialibrary settings folder. So they could start adding up. Need to have a go at reading the playlist.xml to get the actual in use playlists *.m3u8 filenames to sort this out. They have random names !

    Flash:
    Got flash player to work in browser & online services, by just including the same flashplayer files as in FirefoxPortable, to App\Winamp\ folder. Still seems to give the odd message that it needs a newer version (while it is the newest version) but seems to work fine anyway!

    Winamp browser & online services:
    The winamp browser doesn't save any settings on exit. Strange enough, a locally installed winamp does, but still didn't find where it is saving them. As well it wants to open up the default browser often after clicking a link. While online services opens up a winamp browser window after opening a new window(major disadvantageous is that online-services are without address bar ). Within the online services there is Streampad, what eventually works quite ok, but only does if the playlist-editor is empty (otherwise it gets kind of confused and just plays local music, instead of the online music it shows it should play).

    About the ExtraFiles\ folder:
    Done testing on Orgler and Dropbox. They could/should be included in the portable version. Just as auth.w5s, which seems to be for member registration with aol radio/ Winamp (and probably Orgler). pmp_usb.dll does add all kinds of sound files to the library, even if they belong to applications, so I like to keep it out of the portable version. As well a lot of bad comments in the forum about pmp_usb.dll freezing winamp when connecting an external HDD. About Elevator.exe & elevatorps.dll, still don't know what they do, but don't even get installed on a regular installation on my Windows XP. So for the moment I consider them unnecessary.

    Winamp Pro:
    Done some comparing of the extracted files of the ordinary winamp download and the pro version download. They consist of exactly the same files. So there should be no problem if anybody wants their registration to upgrade to pro.

    I will get to work on these topics right away,
    as well I will get in touch with the winamp forum !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Progress update 2

    All the following is (probably)for a next release (dev. test 3)!

    Registry:
    Done

    Drive letter update:
    Done, but has some minor bugs. Will have to spend some more time on testing it. Quite a complicated situation, and Winamp seems to be full of minor bugs it self(or is it my code???).

    New feature:
    I have added new feature, I'm testing for the moment. Which makes the launcher do some kind of 'automatically removing of non portable file names' in the library, which will be missing file names after switching to another PC, of course. If it comes through my tests, I will include it as an WinampPortable.ini option. On each launch it deletes the formal media-library and does away with any non PA-drive 'Watch Folders', then forces Winamp to rescan the 'Watch Folders'. This way you will allways have clean portable Media-Library. Having lots of missing file names in the library also makes Winamp freeze up for a while. For now there don't seem to be any bugs with it. Next I want to try including all of the temporary playlists as well.

    Winamp Forum:
    I can't get to register for the Winamp forum. It tells me my email address is banned by the administrator. Tried another email address, no luck, even got my girl friend to try to register, on a different computer and it didn't work. Feels better though, the ban doesn't seem personal.
    I got in touch with 'French Frog' about his FrogASPI.dll. It is no problem to include it for the next release ! Thanx French Frog !

    QUESTIONS:

    PLEASE, IS THERE ANYBODY WHO IS REGISTERED WITH WINAMP FORUM (PROBABLY A NSIS FORUM REGISTRATION IS EQUAL), SO I COULD AT LEAST GET IN CONTACT WITH THEM ABOUT GETTING REGISTERED MYSELF. IT'S QUITE IMPORTANT !!!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    dougakins
    Offline
    Last seen: 5 years 3 months ago
    Developer
    Joined: 2009-08-17 09:34
    Works with Media Monkey Portable

    I've been using this with the portable version of Media Monkey that is floating around this forum. Media monkey allows you to use Winamp as the media player - you just need to point it to the exe and these 2 portable versions work great together.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I will have a look in to it

    Could you explain a bit in what way they could work together, and what would be the advantage.
    Then I wouldn't have to spend to much time figuring it out myself. Thanx

    I am hoping to come with a new development test release soon, but is taking more of my time then intended.
    Some major changes to the way the launcher deals with Winamps Media Library, so there couldn't be anymore missing files, which freezes up Winamp (for me anyway).
    For the moment still busy on disabling the web browser as it is leaving traces behind, like cookies and temporary internet files. Every time I think it is ready for a next test release, I come across something else what should be modified/added.

    Been getting some support from DJ Egg, so I should be able to get it done alright.

    I am happy you are content with the way Winamp Portable is working for now.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    dougakins
    Offline
    Last seen: 5 years 3 months ago
    Developer
    Joined: 2009-08-17 09:34
    MediaMonkey

    Basically, MediaMonkey has it's own internal player, but you can customize it to use Winamp by pointing it to the Winamp exe in the settings. So instead of using it's own internal player, it uses Winamp to play files.

    I was able to use relative paths to point this to WinampPortable.exe and everything works as expected.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    New release is out !

    Not perfect jet, but slowly getting there !

    Sorry John, this is the fastest I can do. It has been a hell of a lot of work, to get all the different problems, options, drive letters and functions working on a portable way !

    Hope it will work fine for all of you, since this is a major update in the way the launcher handles all the settings files. (I have done a lot of testing my self, though)

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Just been naughty....

    and downloaded Winamp Portable from the *Z site. Hoping to get some good ideas for what I still could improve on my launcher. ( not really getting enough feedback here as well )

    Very disappointing, the only drive letter being updated is the main playlist. Totally made Media-Library unusable, as well any additional playlists contained a wrong drive letter. Away with my hope of getting some new ideas....

    Anyway, this all shows they aren't actually putting that much effort in to making apps really portable ! What is Winamp PRO, without a media library that actually works ????

    [edit]Should I worry about them stealing my script now ? Wink

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    80 downloads of development test 3.....

    but no feedback ?!?!

    There has been such a bounce of new code in the script, I can hardly believe it is working totally as it should ?

    About the automatic media-library & playlists, is this the direction to go with the winamp launcher ???

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    browser won't work with all proxys (ies?)

    winamp's browser works fine ont the computer at the university (no filter whatsoever (vista business)) but I go back to XP pro at the public library where the proxy server asks you for a username and password each time and winamp's browser doesn't want to load. (it never asks for your usename/password either)

    I think that's an internal problem though and you might want to say that in known bugs.

    Just throwing that out there.

    P.S. I'm surprised by your dedication to this project. You right an essay in every update! Blum

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I disabled the web browser in the last development test

    Cause it is leaving cookies & temporary internet files on the system drive. Just as all the online services winamp has, they (should) have been disabled.
    At the moment I am in contact about this with the Winamp team, to find another solution.

    Anyway, somehow you enabled it again !
    I did set a Proxy Address in General Preferences to stop Winamp making any contact to the internet to stop online song info creating cookies etc.
    Probably when you delete this fake Proxy Address (PortableApps:NoInternet) your browser will work again.

    Additionally you could check the following folder :

    WinampPortable\App\Winamp\Plugins\freeform\xml\wasabi\xml\xui\browser
    

    I had the installer rename the folder to '-browser' to disable it.

    Did you test the automatic Media Library & Playlists in Development test 3 ?
    Just add some local files/folders to the media library/playlists and see if they disappear after switching PC. It should be fool proof !

    And you are right, it is a bit in my nature to get obsessed with my occupations !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Just, ....

    feel like bumping if I have a new release out ! (Sorry):-)

    I gave up on making this an official release (sorry John), due to the browser traces!

    Hope fully AIMP2 Portable has got more potential !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Fine

    It's fine to add a comment (bumping the post) when you do a new release.

    I think we're ok going ahead with the caveat about the browser being local.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    It's not just the browser.....

    it's basically all of Winamp.

    Now Playing, song_info, online_services & Podcasts do all leave the traces.

    I've tried switching them all of, and it's possible. Except (for now) for the song info button in the Media Library CD-Player\Recorder window. Strange enough that button seems to be different to the song info buttons of the other windows (which are able to be switched off with a simple ini setting).

    Anyway I have been (trying) to get in contact with the Winamp team about this issue, they said they are interested in the project and might work together with me on some details. The winamp product manager should contact me (last week) but didn't jet.

    Anyhow, I expect that the way Winamp is making (a part of) their money, is through these internet services. So I don't think they would be very happy with a Winamp (version) which has all these services disabled !

    Does caveat mean warning ?

    Do you mean that you are ok with a release (one day) of Winamp Portable which is leaves these traces behind ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    horusofoz
    horusofoz's picture
    Offline
    Last seen: 1 year 2 months ago
    Joined: 2008-04-03 22:45
    I mean not to be picky but if

    I mean not to be picky but if the browser is local, would that mean it leaves history, bookmarks, cookies etc on the host pc?

    PortableApps.com Advocate

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I tought it did explain all in the main release section on top.

    But to make it more clear, development test 4 doesn't leave these traces!

    It redirects everything, cause of the use of:

    System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$SETTINGSDIRECTORY\Temp\User").r0'
    

    But there for Winamp Portable will have some kind of Virtual Desktop folder. Have a look when you want load/save a file in the desktop. There will be a warning !

    Maybe, this issue makes it not good enough for an official portable app, but I am not exactly sure what John just meant about this just above.

    If anybody has a problems with the redirecting, they can turn it of through the WinampPortable.ini, but the cookies & etc. will be left !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Chris Morgan
    Chris Morgan's picture
    Offline
    Last seen: 9 years 4 months ago
    Joined: 2007-04-15 21:08
    Don't make it default

    I investigated the effects of USERPROFILE redirection, the caveats and whatnot, and we (John and I and a couple of others who were interested in it) decided it wasn't safe to do it in most cases. (One script I wrote that did it was for APPDATA redirection.) The other thing is, if you're storing any data in APPDATA or any of the other locations, you'll run into trouble with languages and operating systems - in English on XP it's Applications Data, while on Vista it's AppData\Roaming, and the local AppData is Local Settings\Application Data and AppData\Local; on XP at least those are then translated for other languages... that script of mine dealt with that properly (none other has ever to the best of my knowledge) and yet it's still just not really safe.

    I am a Christian and a developer and moderator here.

    “A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I will change the default as soon as possible !

    But I need some answers on some questions, before I can release the these changes !

    if you're storing any data in APPDATA or any of the other locations, you'll run into trouble with languages and operating systems...

    Winamp itself doesn't use any of the system folders, the launcher makes Winamp know where it's settings are by the following file in Winamps main folder :'paths.ini'
    It is just the online functions (I believe it uses WININET.dll) what leave the files on the system. So, I don't see any problem there !
    I will set the userprofile-redirect=false in the launcher and have the launcher set to delete the redirection folder on exit since the cookies, history & temporary internet files aren't all that important.

    But I have more questions ?

    I had a try and look at the AppDataRedirect.nsh, and I see your point for the languages. But since it's based on just the AppData, and deletes all of Winamp's additional settings folders, I can't use it (the way it is at the moment)!

    Could you tell me what is the difference in the behavior of the following to lines :

    System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$SETTINGSDIRECTORY\Temp\User").n';.r2'
    System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$SETTINGSDIRECTORY\Temp\User").r0'
    

    Maybe, in a later stage I could add some script based on yours what can deal with other languages so the cookies, history & temporary internet folders are more portable !

    The only (minor) problem I come across is the Desktop being virtual. But I don't have any means to properly test this on different OS's.

    Should this all do the job ?
    Do you have any more remarks about using Userprofile-Redirection ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Possibility

    I think it's possible to do USERDATA redirect to TEMP here and just delete it on exit.

    To get around the Desktop issue, we could setup a temp desktop in TEMP and create a shortcut there to the real PC Desktop. To do that, we'd need to store the current desktop path in the beginning of the launcher, redirect USERDATA, and the create a shortcut in the Desktop directory in there.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I have tried that before..

    and tried it again. But an ordinary windows shortcut just directs it to the same virtual desktop.

    Do you know any better ways of making a shortcut ?

    Should I keep the default to redirect or like Chris advised me to not default this ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 5 hours 41 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    No no

    I mean we'd keep track of the full physical path to the PC's local desktop directory for the currently logged in user. Then we'd create a Windows shortcut INSIDE the virtual directory in TEMP to the PC's local physical desktop directory.

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

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Is this what you meant ?

    I included the following code:

                    ;=== RedirectUserProfile ===
                    StrCmp $USEPROFILEREDIRECT "true" 0 ProfileDone
                    StrCpy $REALDESKTOP $DESKTOP
    		System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$SETTINGSDIRECTORY\Temp\User").n';.r2'
                    CreateDirectory "$SETTINGSDIRECTORY\Temp\User\Desktop\This isn't the real Desktop !"
                    CreateShortCut "$SETTINGSDIRECTORY\Temp\User\Desktop\Shortcut to the real Desktop.lnk" "$REALDESKTOP"
                    ProfileDone:
                    	Sleep 100
    		        ExecWait $EXECSTRING
    
    	CheckRunning:
    		Sleep 1000
    		FindProcDLL::FindProc "${DEFAULTEXE}"
    		StrCmp $R0 "1" CheckRunning
    		
                    ;=== Undo RedirectUserProfile ===
                    StrCmp $USEPROFILEREDIRECT "true" 0 MoveFolderBack
                    RMDir /r "$SETTINGSDIRECTORY\Temp"
    

    It works in my Windows XP

    Link:Winamp Portable test

    I did leave USERPROFILE redirect as a default, cause I it seems to work fine and others probably won't be very pleased if it does leave stuff behind.
    But Chris advised before to change that ?

    Please tell me if I should have it as default or not ?

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Bruce Pascoe
    Offline
    Last seen: 12 years 10 months ago
    Joined: 2006-01-15 16:14
    ...

    Where's small Bento? I prefer the small version, Big Bento takes up far too much screen real estate on my netbook.

    Also, small is the default for local installs, and we usually try to keep default configuration changes to a minimum for official apps.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    This is a problem due to the extracting.

    I had a hell of a job finding all the files for Big Bento and reorganizing them.

    Have a look in the other\Source folder for the following file:

    PortableApps.comInstallerCustom.nsh
    

    You could see the way the installer has to reorganize all the files for the Big Bento skin !
    And actually the idea is to include Winamp (+ Skins) in the final official version.
    So basically all this work I have done, will be for nothing.

    Anyhow, when you would extract the Winamp installer yourself through 7-Zip, you will see that some file names are doubled, so only one file will get extracted. The other ones, which are missing probably are the ones for Small Bento & Winamp Modern. Except for the skins, the rest of Winamp is extracted the way it should be.

    Although this isn't a priority, cause the skins will be included in the final version, I could have a look one day to fix this issue. But I doubt I would do this soon. (going on holiday next week)

    For now just copy the skins from a local install, to get the rest of them. Or get some special ones from SkinConsortium(dot)com, like pro_classic !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    Finally got it to

    Finally got it to work. Download installer part works great... but shouldn't you use 7-Zip Portable?

    P.S. I was looking at your source code for it and saw Extracting.exe. What did you write it in? I was going to use it as a template for The Off By One Web Browser Portable, I got everything else, but it was between that and google chrome portable, but I understood yours better to help... Sorry that was a bit off topic.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    It's just using Extracting.exe as a temporary solution !

    As the PortableApps.com Installer 1.0 couldn't do the extracting (for Windows XP,it couldn't anyhow) ! The new Installer 1.0.1 shouldn't have a problem with it. But I didn't get around updating the installer jet!

    This issue was stated at ImgBurn Portable !

    To get to your question, it's just a batch file (included in the source), which I compiled into an executable using 'Bat_To_Exe_Converter'. As I said it was just a temporary solution till PortableApps.com Installer can do the job it self. So I advise you, to not use it.

    I had a look on your page TheOffByOneWebBrowserPortable, and if I understood you right, you need to make it an online installer. Just give PA.c Installer 1.0.1 ago it should do the job. TopOCR Portable just done an online installer test release, which worked fine !

    Let me know if you need any additional help ?
    And please, let me know if you have any issues with Winamp Portable it self ?

    By the way, Merry Christmas !!!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    I skipped 1.0.1

    tried to make it with 1.0.2.

    It didn't work.

    Sorry for going off topic again.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Updated to Winamp 5.571

    This version is like a present from heaven. It works that smooth !

    I want to do something about the size of my main topic...next time!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Chris Morgan
    Chris Morgan's picture
    Offline
    Last seen: 9 years 4 months ago
    Joined: 2007-04-15 21:08
    Comments again

    Sorry guys, when I was fixing the lists in this the form got slightly scrambled (I've had it happen a few times with Drupal, not sure what triggers it) and comments got disabled. I've fixed it back up now.

    I am a Christian and a developer and moderator here.

    “A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Updated with NewTextReplace plugin !

    I can't get the 'kill child processes' done !

    Cause strangely enough, the iexplore.exe processes which Winamp could start are not registered as child processes. Although they inherit the environment variables ???

    I've tried reading the env vars of these remote processes so I could get them to close that way, but can't really find a solid way to read them out of remote processes ???

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Sorry about that.

    The last dev.test had a problem with the online installer.

    Please let me know if something is not working properly, or you'd like some behavior changed !!!

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Updated the launcher! For the

    Updated the launcher!

    For the last time, as I've got it where I wanted to go with it.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Ok, another small

    Ok, another small update.
    Just wanna have it as perfect as it could be.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    nyseto
    Offline
    Last seen: 13 years 9 months ago
    Joined: 2010-06-07 05:46
    Don't wont to install

    Hi, I have problem with installing winamp portable. When run "WinampPortable_5.572_development_test_3_online.paf.exe" and download winamp, it try to install but says me "The downloaded copy of Winamp is not valid and can not be installed." and nothing. Why is it?

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Fixed !

    Fixed !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    nyseto
    Offline
    Last seen: 13 years 9 months ago
    Joined: 2010-06-07 05:46
    One more problem

    Now it's ok install it, but when i run winamp it shows SplashScreen on portable apps and then nothing don't wont to run. I check the task manager and when start winamp there is a proces WinampPortable.exe only when shows the SplashScreen and when the SplashScreen gone and the proces gone. I think there have to run and another proces winamp.exe but there isn't. I try to run it from subfolder "App\Winamp\winamp.exe" and show me "Application Error - The application failed to initialize properly (0xc0000034).Click on OK to terminate the application."

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I will look into it today

    I will look into it today !

    Thanx for the feed-back, I actually got quite demotivated on developing this, due to hardly getting any feed-back.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Pyromaniac
    Pyromaniac's picture
    Offline
    Last seen: 9 years 7 months ago
    Developer
    Joined: 2008-09-30 19:18
    ...

    WORKS GREAT!

    Keep up the good work!

    I look forward to seeing it out soon!

    Great job!

    I love Winamp portable.

    Thanks for making it portable!

    How's that for motivation?

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Thanx Pyromaniac, I should

    Thanx Pyromaniac,
    I should really finalize WinampPortable one day !

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    I downloaded and re-installed myself...

    and works great over here as-well !

    Please try to re-install the .paf installer.
    Your feed-back about the error-message suggest that winamp.exe is corrupted. Probably you got a corrupted online-download, as the .paf installer is not checking the MD5-checksum.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    nyseto
    Offline
    Last seen: 13 years 9 months ago
    Joined: 2010-06-07 05:46
    Finally

    I run it :). I think the solutions is when install other program and wants to install "Microsoft Visual C++ 2008 Redistributable Package (x86)" and when install the package i try to run winamp and it run :). My fault and sorry about that. Now I am testing it.

    Cessquill
    Offline
    Last seen: 13 years 6 months ago
    Joined: 2010-06-21 15:02
    Looking Good

    Just registered to express interest in this project - keep up the great work.

    I've been testing it for a few days now and have found no major hitches. A couple of times, Win7 has said that Winamp is not responding, but if I wait then normal service is resumed. TBH, I think that's because I'm testing using an old slow thumbstick.

    Is there much holding up a final release? Smile

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Thanx for the feedback Cessquill

    To clear things up about the development of Winamp Portable,

    • First of all I got distracted by other projects I've been doing lately
    • I have to make a decisions on having Winamp run portable as default, so it uses it's settings files from the usb-drive. But this makes it potentially get 'not responding' end exiting very slowly. Or to copy it's settings files to AppData and run Winamp pointing the settings to there. This increases Winamps speed extremly, but is not in favor due to possible settings files being left behind on system crashes (or maybe by unsafe ejection of the ub-drive)
    • My major issue is finding a perfect solution to handle the redirection of the Winamp Browser internet files. At the moment the launcher redirects them (%USERPROFILE%) to the usb-drive, which works fine till the user/browser opens a second tab/window. This will open an internet explorer process(or maybe any other default browser) with the same redirection. So after closing Winamp, internet explorer keeps file-handles open to the usb-drive, which will prevent it from ejecting. I was hoping that the new PAM eject functionality would fix this, but it hasn't so far
    • Last, the launcher still needs to deal with the keys mentioned above (in the main topic), which could potentially be created if the user uses specific preferences options. I think I got the hang of this now, and will implement this asap

    I'm gaining new motivation to have a look at all of this again, thanx to the recent feedbacks. Although I have to say, I really do not have that much spare time to work on this !
    And I doubt it will ever be good enough to become an official portable app.

    Another major problem is that Winamps behavior seems to change quite a bit with every new version they release. Sad

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Cessquill
    Offline
    Last seen: 13 years 6 months ago
    Joined: 2010-06-21 15:02
    Thanks for getting back to me

    All makes logical sense - good luck in finding solutions.

    For what I use it for, it's plenty good enough all ready. I don't really need any of the browser/online side of it - truth be told I'd like to turn off the tabs and online menus to recover some screen estate on a netbook.

    Personally, I wouldn't mind too much if there was the chance that a file or two was left in a temp folder if it meant increased performance - heck, what doesn't leave the odd remnant that's removed in a cleanup? However, I fully understand if you're inclined to follow the true requirements of a portable app. Any chance of some kind of user choice?

    Again, well done - I wanted a portable media player with library, easy playlist, volume normalising and (via old plugin) crossfading - you've thankfully ticked those boxes for me. From the responses I've read, I'll try this on my main drive tomorrow and use it in anger.

    brum74
    Offline
    Last seen: 11 years 8 months ago
    Joined: 2009-04-11 11:29
    I think I found an issue with

    I think I found an issue with winamp.reg file. It appears the launcher is always appending the values from HKEY_CURRENT_USER\Software\Winamp to the end of the file instead of replacing.

    5.572 Dev Test 3
    Win7 x64

    Once you go portable...

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Thanx for letting me know

    I must have missed out on some setting Sad

    I'm working on updating Winamp and re-writing the launcher code, see comment below

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Jhonn
    Jhonn's picture
    Offline
    Last seen: 1 month 2 weeks ago
    Joined: 2008-10-06 12:32
    Could you update it to the last version?

    Your launcher is only that work properly with Winamp, but it is outdated. Any prevision of update?

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    Working on it !

    Lately, I've been working on porting Winamp Portable to use the new PortableApps.comLauncher (PAL), and of-course to use the latest Winamp 5.581. I'm almost done !

    So keep a look out here, the coming week.

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    Jhonn
    Jhonn's picture
    Offline
    Last seen: 1 month 2 weeks ago
    Joined: 2008-10-06 12:32
    Thanks

    It's look awesome, waiting

    Cessquill
    Offline
    Last seen: 13 years 6 months ago
    Joined: 2010-06-21 15:02
    Fabulous! Keep up the good

    Fabulous! Keep up the good work.

    Mark Sikkema
    Offline
    Last seen: 13 years 1 month ago
    Developer
    Joined: 2009-07-20 14:55
    New version in new thead

    Porting the launcher to PAL 2.1 beta probably justifies a new tread Smile

    Winamp Portable 5.581 development test 1

    Formerly Gringoloco
    Windows XP Pro sp3 x32

    remygrasse
    Offline
    Last seen: 6 years 11 months ago
    Joined: 2015-05-12 12:21
    hello here last version of

    hello here last version of winamp portable

    no dev test

    https://portable-winamp.en.uptodown.com/windows/download

    Remy

    Log in or register to post comments