ionut_y Posted December 10, 2008 Share Posted December 10, 2008 Hi !Does anyone create a custom install for AIMP2,I want to pack my settings hotkeys,default skin,...I found some files in ..Application Data\AIMP\ but also are files are in \Program Files\AIMP2\DATA\...What about file association.Thanks for any advice. Link to comment Share on other sites More sharing options...
radix Posted December 10, 2008 Share Posted December 10, 2008 (edited) You need RegShot and reg2inf (require Microsoft .NET Framework 2.0).Install AIMP2, goto Options, configure the player as you wish and before press Apply button, startRegShot and make the first snapshot.After the first snapshot is done, press Apply button, close the player and make the second snapshot.Save the content of Report.1.RedoReg.txt to a reg file and use reg2inf to convert to .inf.Copy the file: %programfiles%\AIMP2\Data\Profile\AIMP2.ini in a folder alongside with installer and .inf file and use the next code in a batch file:@echo offstart /wait aimp_2.51.323.exe /Sstart /wait rundll32.exe advpack.dll,LaunchINFSection settings.infmd "%programfiles%\AIMP2\Data\Profile"copy AIMP2.ini "%programfiles%\AIMP2\Data\Profile\AIMP2.ini" /yexitEdit: reg2inf convert paths like C:\Program Files\AIMP2\Data\Profile to %programfiles%\AIMP2\Data\Profile Edited December 10, 2008 by radix Link to comment Share on other sites More sharing options...
ionut_y Posted December 11, 2008 Author Share Posted December 11, 2008 thanks radix,nice advice,I'll try it soon. Link to comment Share on other sites More sharing options...
ionut_y Posted December 11, 2008 Author Share Posted December 11, 2008 I think I solved this way :I've used SysTracer to get file association for AIMP2,then I've made a NSIS installerthanks to radix for the clue !!!!I've attached .reg file and there is NSIS script :!include "MUI2.nsh"Name "AIMP2"OutFile "aimp.exe"!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_INSTFILES!insertmacro MUI_LANGUAGE "English";Page instfilesSection "" SetOverwrite on SetAutoClose true SetOutPath "$PROGRAMFILES\AIMP2\DATA" FILE "AIMP.ini" SetOutPath "$PROGRAMFILES\AIMP2\DATA\profile" FILE "AIMP2.ini" SetOutPath $temp FILE "aimp_2.51.323.exe" ExecWait '"aimp_2.51.323.exe" /S "' file "fileasso.reg" Exec 'regedit /s "fileasso.reg"' delete "aimp_2.51.323.exe" delete "fileasso.reg"SectionEndfileasso.zip Link to comment Share on other sites More sharing options...
nomadturk Posted December 23, 2008 Share Posted December 23, 2008 (edited) This is what i've been using to associate the extensions. I've used a software like RegShot (forgot the name) by watching the changes in registry to create it. Unfortunately, at my system, you need to start AIMP once for it to register all.BTW, there's an error with your code. ExecWait '"aimp_2.51.323.exe" /S "'should be ExecWait '"aimp_2.51.323.exe" /S'Here, i've modified it to include the whole profile directory. I like to customize everything! !include "MUI2.nsh"Name "AIMP2"OutFile "aimp.exe"!insertmacro MUI_PAGE_WELCOME!insertmacro MUI_PAGE_INSTFILES!insertmacro MUI_LANGUAGE "Turkish";Page instfilesSection "" SetOverwrite on SetAutoClose true SetOutPath "$PROGRAMFILES\AIMP2\DATA" FILE "AIMP.ini" SetOutPath "$PROGRAMFILES\AIMP2\DATA\profile" FILE "Profile\AIMP2.ini" FILE "Profile\AIMP2t.ini" FILE "Profile\aimp_lastfm.ini" FILE "Profile\AIMP_Shell.ini" FILE "Profile\Bookmarks.ini" FILE "Profile\EQLib.ini" SetOutPath "$PROGRAMFILES\AIMP2\DATA\profile\ML" FILE "Profile\ML\AIMP2.db" FILE "Profile\ML\AIMP_ML.INI" SetOutPath "$PROGRAMFILES\AIMP2\DATA\profile\PLS" FILE "Profile\PLS\Default.plc" SetOutPath $temp FILE "aimp251328.exe" ExecWait '"aimp251328.exe" /S' FILE "appAIMP.reg" FILE "appAIMP2.reg" Exec 'regedit /s "appAIMP.reg"' Exec 'regedit /s "appAIMP2.reg"' delete "aimp251328.exe" delete "appAIMP.reg" delete "appAIMP2.reg"SectionEndregAIMP2.zip Edited December 23, 2008 by nomadturk Link to comment Share on other sites More sharing options...
ionut_y Posted December 23, 2008 Author Share Posted December 23, 2008 (edited) Thanks,you're right, but silent install worked for me,the only problem I have is file association,I'll try your .reg Edited December 23, 2008 by ionut_y Link to comment Share on other sites More sharing options...
nomadturk Posted December 24, 2008 Share Posted December 24, 2008 Mine does associate them but.. You have to start AIMP2 once after installation in order for it to run. I've tried running and terminating AIMP2 at RunOnce but.. it doesn't work either.Weird. (: Link to comment Share on other sites More sharing options...
ionut_y Posted December 24, 2008 Author Share Posted December 24, 2008 I've tried your reg file,it doesn't work for me on a new machine.I think registry snap 1 must be done on a computer where doesn't existing AIMP2 and snap 2 on the same machine after installation and customization.If I'll find a good solution I'll post it there.Mine does associate them but.. You have to start AIMP2 once after installation in order for it to run. I've tried running and terminating AIMP2 at RunOnce but.. it doesn't work either.Weird. (: Link to comment Share on other sites More sharing options...
nomadturk Posted December 26, 2008 Share Posted December 26, 2008 Well, i solved my AIMP2 problems.First, i'm copying all my custom AIMP2 settings by copying the necessary files to my hard drive via $OEM$ folder.Second, I am installing AIMP2 at RunOnceEx, but with this installation it does not associate the filetypes. So, i import my reg file just after installation.Lastly, AIMP2 needs to be run once to register all necessary stuff and work properly.So, i'm restarting the system once automatically (lame but... no other solutions!) after the user logs on to the desktop for the first time.BTW, mine uses aimp2_light.dll for icons, you must change it to aimp2.dllOther than that, i don't recall anything that shouldn't work for you. All works for me! Link to comment Share on other sites More sharing options...
nomadturk Posted December 26, 2008 Share Posted December 26, 2008 (edited) Hey, give this a try!Uses Assoc and ftype to associate mp3 and other extensions to AIMP2.AIMP.cmd Edited December 26, 2008 by nomadturk Link to comment Share on other sites More sharing options...
ionut_y Posted December 27, 2008 Author Share Posted December 27, 2008 Hi,thanks a lot.The only problem I had:no association was done on first install.I'll try your advices,thanks a lot !!! Link to comment Share on other sites More sharing options...
katok888 Posted December 28, 2008 Share Posted December 28, 2008 http://forum.oszone.net/thread-101182.html Link to comment Share on other sites More sharing options...
ionut_y Posted December 28, 2008 Author Share Posted December 28, 2008 (edited) Thanks, but there is a russian forum,I don't understand a word,except some useful commands like AIMP2-2.5.0.303.exe /S /SKIN="WMP11 Glow.acs2" /ICONS="XP Blue.dll"NSIS : ExecWait '$INSTDIR\aimp2.exe /REG=R'Thanks.http://forum.oszone.net/thread-101182.html Edited December 28, 2008 by ionut_y Link to comment Share on other sites More sharing options...
nomadturk Posted December 29, 2008 Share Posted December 29, 2008 Thanks, but there is a russian forum,I don't understand a word,except some useful commands likehttp://translate.google.com/translate?hl=e...sl=ru&tl=RO Link to comment Share on other sites More sharing options...
ionut_y Posted December 29, 2008 Author Share Posted December 29, 2008 Great,thanks !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now