Old 16th May 2007, 21:59   #1
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
Lightbulb wrapped install questions

Hello,
Thanks to goldy1064 I was able to use 2 nsis pages to create one program that calls another so that I can do a silent versus custom install. However, I am having problems with hiding the banner from the wrapped installer.

I have tried using both HideWindow and Banner::show /NOUNLOAD
in my .oninit function (which is located at the bottom of the page).

If I try to move my .oninit function to the top of the page, as suggested by kichik in another thread, I get an error that says this:

Usage: ReadRegStr $(user_var: output) rootkey subkey entry
root_key=(HKCR|HKLM|HKCU|HKU|HKCC|HKDD|HKPD|SHCTX)

Because I am reading registry strings during my .oninit.

What is the problem? Is there anyway around this?

Jack
jackkoho is offline   Reply With Quote
Old 17th May 2007, 02:37   #2
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
code:
ReadRegStr $R0 HKLM "SOFTWARE\Segue Software Inc\SilkTest\Installed" "Directory1"
works in .onInit in my script.


Quote:
Because I am reading registry strings during my .oninit.

What is the problem? Is there anyway around this?
Show us what you are doing, someone might see the problem.

Don
demiller9 is offline   Reply With Quote
Old 17th May 2007, 16:59   #3
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
code:

Function .onInit
Banner::show /NOUNLOAD
ReadRegStr $Py_REGVALUE HKLM SOFTWARE\Py\Py\1.234\InstallPath\InstallGroup ""
StrCmp $Py_REGVALUE "program 1.234" 0 +2
sectionsetflags ${program} 0
StrCmp [some other stuff]
...
FunctionEnd


Works fine at the bottom of the page but gives me that error at the top.

jack
jackkoho is offline   Reply With Quote
Old 17th May 2007, 17:06   #4
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
i think i may have found the solution... one sec
jackkoho is offline   Reply With Quote
Old 17th May 2007, 17:16   #5
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
I thought it may have been because I hadn't declared the variable

Py_REGVALUE yet (probably what was giving me the error)

But when I put the global variable declaration in .onInit
I get an error because the section ${program} has not been defined yet.
jackkoho is offline   Reply With Quote
Old 17th May 2007, 18:29   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Then both declare Py_REGVALUE and define program on the top of the script.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 17th May 2007, 19:04   #7
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
thats the way it is now, first I have the variables defined, then all the sections, then the .onInit which uses both the variables and the sections.

The banner still pops up even when I put Banner::show /NOUNLOAD in .onInit.

Sorry if I am going around in circles here.
jackkoho is offline   Reply With Quote
Old 17th May 2007, 19:10   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
And where is the !define? If you get an error for ${program}, you didn't !define it.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 17th May 2007, 19:17   #9
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
program is the name of one of my sections. Does this make sense?
jackkoho is offline   Reply With Quote
Old 17th May 2007, 19:26   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Well, ${program} makes sense now, but the rest got me completely confused. Why do you use Banner::show to hide a banner? What banner are you trying to hide exactly?

.onInit should be defined below the "program" section so ${program} will be defined.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 17th May 2007, 19:29   #11
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
I am trying to hide the "please wait while setup initiliazes..." banner. I want to hide it because it is already being shown by the "wrapper" installer.

I know this may be getting picky, but I want this to be pretty seamless and perfect.
jackkoho is offline   Reply With Quote
Old 17th May 2007, 19:35   #12
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
And I thought that according to the documentation, if you wrote banner:show /NOUNLOAD it would show no banner at all.

I have also tried banner:show /NOLOAD, banner:destroy /NOLOAD, banner:destroy /NOUNLOAD, and none of them seem to do to the trick
jackkoho is offline   Reply With Quote
Old 17th May 2007, 19:42   #13
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The Banner plug-in has nothing to do with that dialog. You can't use the plug-in to hide it.

To avoid the "verifying installer" dialog, use CRCCheck off in the internal installer. To avoid the "unpacking data" dialog, use ReserveFile on the top of the script for every file and plug-in used in .onInit. When using the MUI, also use MUI_RESERVEFILE_INSTALLOPTIONS and MUI_RESERVEFILE_LANGDLL as explained in section 6 of the MUI Readme.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 17th May 2007, 19:46   #14
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
Thank you. I will look at these things.
jackkoho is offline   Reply With Quote
Old 17th May 2007, 19:52   #15
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
CRCcheck off worked.
jackkoho is offline   Reply With Quote
Old 17th May 2007, 19:56   #16
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
CRCcheck off worked.

I assume that this just means that it allows the user to run a potentially invalid installer.
jackkoho is offline   Reply With Quote
Old 17th May 2007, 21:37   #17
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Yes, but as long as it's already checked by the outer installer, it's just a double check.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 18th May 2007, 16:32   #18
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
cool, and thanks
jackkoho is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump