Skip to content
⌘ NSIS Forum Archive

how to add music throughout the installation program?

48 posts

anoopparwani#
whats a parameter?

this is the part in the script :

Section "Adobe Gamma" AdobeGamma
!insertmacro UpgradeFile "files\cpl\optional" adobe gamma.cpl "$ProgramFiles\Common Files\Adobe\Calibration"
SectionEnd
kichik#
!insertmacro UpgradeFile "files\cpl\optional" adobe gamma.cpl "$ProgramFiles\Common Files\Adobe\Calibration"
^ command ^ macro ^ 1st parameter ^ 2nd ^ 3rd ^ 4th
anoopparwani#
damn.. that file is named as "adobe gamma.cpl" if i remove the space between it, it wont have any effect on the users comp when its installed. The file name has to be"adobe gamma.cpl"

how do i solve this problem?
kichik#
The fourth parameter, which should be the thrid, also has spaces. To avoid it being treated as two parameters, you've quoted it. Do the same for the second parameter.
anoopparwani#
is this how it should be ?

!insertmacro UpgradeFile "files\cpl\optional\adobe gamma.cpl" "$ProgramFiles\Common Files\Adobe\Calibration"
kichik#
Have you tried compiling it?

Now you have just 2 parameters. It still needs 3.

You should read the UpgradeDLL documentation again. Even after the parameters separation will be sorted out, the parameters' values will not be right.
kichik#
No, that's not what I said. I said you should read UpgradeDLL's documentation again because the parameters are wrong.
anoopparwani#
ok will read that.

I have a few more questions

how do i make the components page have the description window at the bottom?

and how do i make the installer page have the "check box" agree style?

n my installer has come out to be 92 MB without the adobegamma.cpl

how do i make it compress more? i really need to compress this as low as possible. I know the installer has quite a few methods of compression. which is the best? and how do i make it use it?
kichik#
All of your questions can be answered by a short forum search. The first and third questions were just recently discussed. The second questions was probably discussed sometime ago, and if not, there is always the documentation.
anoopparwani#
i still havent found .wma/.mp3 to .mod/.xm converter

ive tried cdmaster from the link posted above. but that just converts .mod to mp3/wav

I need one that does the opposite.

anyone know of one?
Takhir#
I don't know what converter u need for wma file.
1. Load attached script sound.nsi
2. Change wma file name in !define SND_NAME "Blues.wma"
3. Compile script
4. Run sound_test.exe
5. Update your script
6. Have fun
Yathosho#
Originally posted by anoopparwani
is there no such converter??
no. next time try google, as this is nsis unrelated.
anoopparwani#
ive tried google. the reason y i want that is im using music in my installer n the script uses .mod\.xm etc type files.

i need help on this last thing :
ive added a custom page with this code :

PageEx license
Caption "Readme"
LicenseData "files\extra\readme.txt"
LicenseText "Read Me File" "Next >"
LicenseForceSelection off
PageExEnd
now the thing with this is, the header and sub header shows the license agreement header n sub header.

how do i change the header n sub header with the code ive used.

these commands dont work with it :



!define MUI_PAGE_HEADER_TEXT "Read Me"
!define MUI_PAGE_HEADER_SUBTEXT "Please review the Read Me before proceeding.
deguix#
Now I can catch it, you're saying about converting that script that Takhir gave you to be .mod playable. There was an example on that older thread about .mod music some script examples which played .mod/.xm music. Give a search and you'll find what you want.
anoopparwani#
lol no. i want a real music format .mp3/.wav to .mod/.xm conveter/encoder.

and anyone know the header n sub header command for the custom page script ive used ?