WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Problem with InstallOptions-checking
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Defcon0
Junior Member

Registered: Oct 2006
From:

Problem with InstallOptions-checking

Hello,

I have a strange problem concerning an InstallOptions-if-statement. I check whether a checkbox is activated or not and if so, write some file or registry entry.

But unfortunately $R1 is in both cases 0, although I checked the checkboxes (both of them).

quote:

Section "Program data" SEC01
; Autostart-link
!insertmacro MUI_INSTALLOPTIONS_READ $R1 $R0 "Field 2" "State"
${if} $R1 == "1"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "Prog" '"$INSTDIR\Prog.exe" hide'
${EndIf}
; Weitere Verknüpfungen ?
; Desktopverknüpfung
!insertmacro MUI_INSTALLOPTIONS_READ $R1 $R0 "Field 1" "State"
${if} $R1 == "1"
CreateShortCut "$DESKTOP\Prog.lnk" "$INSTDIR\Prog.exe"
${EndIf}


Could you please tell me, what's wrong here?

Thanks a lot!

Bye Defcon0

Quick Link | Report this post to a moderator | IP: Logged

Defcon0 is offline Old Post 11-06-2009 01:56 PM
Click Here to See the Profile for Defcon0 Click here to Send Defcon0 a Private Message Click Here to Email Defcon0 Find more posts by Defcon0 Add Defcon0 to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 04:37 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Problem with InstallOptions-checking
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON