Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

AIMP 2 and custom setting

- - - - -

  • Please log in to reply
16 replies to this topic

#1
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
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.


How to remove advertisement from MSFN

#2
radix

radix

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 755 posts
  • Joined 08-February 07
  • OS:Windows 8 x64
  • Country: Country Flag
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, 10 December 2008 - 02:17 PM.


#3
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
thanks radix,nice advice,I'll try it soon. :thumbup

#4
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
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

Attached Files



#5
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 75 posts
  • Joined 27-December 07
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

Attached Files


Edited by nomadturk, 23 December 2008 - 09:26 AM.


#6
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
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, 23 December 2008 - 03:02 PM.


#7
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 75 posts
  • Joined 27-December 07
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. (:

#8
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
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. (:



#9
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 75 posts
  • Joined 27-December 07
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!

#10
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 75 posts
  • Joined 27-December 07
Hey, give this a try!
Uses Assoc and ftype to associate mp3 and other extensions to AIMP2.

Attached Files

  • Attached File  AIMP.cmd   6.89KB   70 downloads

Edited by nomadturk, 26 December 2008 - 04:41 PM.


#11
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
Hi,thanks a lot.
The only problem I had:no association was done on first install.I'll try your advices,thanks a lot !!!

#12
katok888

katok888
  • Member
  • 1 posts
  • Joined 23-November 08
http://forum.oszone....ead-101182.html

#13
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
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....ead-101182.html


Edited by ionut_y, 28 December 2008 - 08:00 AM.


#14
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 75 posts
  • Joined 27-December 07

Thanks, but there is a russian forum,I don't understand a word,except some useful commands like


http://translate.goo...e...sl=ru&tl=RO

#15
ionut_y

ionut_y

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 25-June 08
Great,thanks !!!

#16
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 822 posts
  • Joined 27-May 04
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, 19 January 2009 - 03:32 PM.


#17
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 822 posts
  • Joined 27-May 04
Complete explanation by our great Russian kamerads:
http://forum.oszone....016220-130.html




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users