Sign in to follow this  
Followers 0
ionut_y

AIMP 2 and custom setting

17 posts in this topic

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.

0

Share this post


Link to post
Share on other sites

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, start

RegShot 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 off
start /wait aimp_2.51.323.exe /S
start /wait rundll32.exe advpack.dll,LaunchINFSection settings.inf
md "%programfiles%\AIMP2\Data\Profile"
copy AIMP2.ini "%programfiles%\AIMP2\Data\Profile\AIMP2.ini" /y
exit

Edit: reg2inf convert paths like C:\Program Files\AIMP2\Data\Profile to %programfiles%\AIMP2\Data\Profile

Edited by radix
0

Share this post


Link to post
Share on other sites

I think I solved this way :

I've used SysTracer to get file association for AIMP2,then I've made a NSIS installer

thanks 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 instfiles

Section ""
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"
SectionEnd

fileasso.zip

0

Share this post


Link to post
Share on other sites

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! :D

!include "MUI2.nsh"

Name "AIMP2"
OutFile "aimp.exe"

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "Turkish"


;Page instfiles

Section ""
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"
SectionEnd

regAIMP2.zip

Edited by nomadturk
0

Share this post


Link to post
Share on other sites

Thanks,you're right, but silent install worked for me,the only problem I have is file association,I'll try your .reg

Edited by ionut_y
0

Share this post


Link to post
Share on other sites

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. (:

0

Share this post


Link to post
Share on other sites

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. (:

0

Share this post


Link to post
Share on other sites

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.dll

Other than that, i don't recall anything that shouldn't work for you. All works for me!

0

Share this post


Link to post
Share on other sites

Hey, give this a try!

Uses Assoc and ftype to associate mp3 and other extensions to AIMP2.

AIMP.cmd

Edited by nomadturk
0

Share this post


Link to post
Share on other sites

Hi,thanks a lot.

The only problem I had:no association was done on first install.I'll try your advices,thanks a lot !!!

0

Share this post


Link to post
Share on other sites

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.

Edited by ionut_y
0

Share this post


Link to post
Share on other sites

Ok so to summarize:

- for silent install, use the /S switch

- for all your settings, catch them via Regshot OR copy the aimp.ini and other ini files (perhaps this is the best solution?)

- for file association, use the /R switch with the aimp executable after install. But will this also associate with AudioCDs?

Edited by ZileXa
0

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.