View Full Version : Nullsoft Install System


SimonSez07
3rd April 2002, 19:45
i have a question about creating nullsoft install scripts that i posted in the general discussion forum:

http://forum.doom9.org/showthread.php?s=&threadid=22227

but nobody over there had any solution except that someone said i should ask koepi in this forum.

so if u could help at all, that would be great ...

thanks
- simon

Koepi
3rd April 2002, 20:19
Use the search button please.

I posted the script some weeks ago, you can download it here... must be some pages back though.
(try "NSIS install script" as search expressions)

Regards,
Koepi

SimonSez07
3rd April 2002, 22:30
thanks for the quick response, but i have been searching, and cannot find ur previous post. if u could post it again (or simply explain the line from the inf script that confuses me) that would be great!

[Installable.Drivers]
divxa32 = 1:DivXa32.acm, "msacm.divxa32" , "DivX Audio Codec" , , ,

thanks

- simon

uManiac
4th April 2002, 00:03
What inf file has that line ? Any more detail would help.

Schultz
4th April 2002, 10:05
Section "DivX ;-) Audio"
SectionIn 1,2
SetOutPath $SYSDIR
File DivXa32.acm
StrCmp $9 "Win2k" Win2000 Win98

Win2000:
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc" "DivXa32.acm" "DivX V4.2 WMA Audio Codec"
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers32" "msacm.divxa32" "DivXa32.acm"
Goto Done

Win98:
WriteINIStr "$WINDIR\system.ini" "drivers32" "msacm.divxa32" "DivXa32.acm"
WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\MediaResources\acm\msacm.divxa32" "Description" "DivX V4.2 WMA Audio Codec"
WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\MediaResources\acm\msacm.divxa32" "Driver" "DivXa32.acm"
WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\MediaResources\acm\msacm.divxa32" "FriendlyName" "DivX V4.2 WMA Audio Codec"
Done:
WriteRegDWORD HKLM SOFTWARE\NimoCorp "DivxAudio" 1
SectionEnd


This is the portion i use for my script.. I have teh Win2000 / 98 detection done in a different portion of the script.. if you wish to see that portion or would rather use the function in the functions.htm for finding os version and working off that is no problem..

SimonSez07
5th April 2002, 05:43
thanks

ill see if i can get my install script to work now. ill see if i can look up how to determine os version from the functions.htm

-simon

SimonSez07
9th April 2002, 22:32
thanks for the help ... everything works great now. i love the nullsoft install system. its so compact / fast / easy / free. i can do about anything with it.

props 2 nullsoft

-simon

Koepi
10th April 2002, 10:03
Nah, it sucks.

Ever tried to cook coffee with it? It absolutely fails!

;)