Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 20th February 2008, 10:00   #1
thegrinch
Junior Member
 
Join Date: Jul 2005
Location: Saarland, Germany
Posts: 16
Send a message via ICQ to thegrinch
Riched20.dll missing on Target machine

Hi all,

I am deploying several NSIS installers successfully since more than two years, but now I encountered a "new", never seen before, error:

After the welcome page, when changing to the license page, the installer suddenly skips, and disappears.

The behaviour only occured on machines that did not have a copy of riched20.dll available.

Is there any way how to make sure this problem cannot occur?
I mean, either extract the file before it is needed (I don't know how to do this), or make NSIS link the produced exe-setup statically against the missing dll.

Thank you for your help in advance,

best regards,
thegrinch
thegrinch is offline   Reply With Quote
Old 20th February 2008, 12:04   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Re: Riched20.dll missing on Target machine

Quote:
Originally posted by thegrinch
I mean, either extract the file before it is needed (I don't know how to do this)...
I guess you could search/extract for a file within function .onInit.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 20th February 2008, 14:16   #3
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
If riched20.dll is not available NSIS trys to use riched32.dll Which should be available on any "virgin" system from Windows 95 to Vista...

So it should still work if the system has riched32.dll... Unless there's a bug in NSIS or something.

The guy with the ridiculous username. Thou shall call him PaR instead.
Visit My Website
{_trueparuex^} is offline   Reply With Quote
Old 20th February 2008, 17:09   #4
thegrinch
Junior Member
 
Join Date: Jul 2005
Location: Saarland, Germany
Posts: 16
Send a message via ICQ to thegrinch
Hmm,
I unfortunately cannot look into that pc that brought the error. But the guy definitely said, the riched20.dll was mentioned in the message box.

Concerning this .oninit thing, I never had to use this function. Could you give an example, please?


Thank you for your help in advance,

best regards,
thegrinch
thegrinch is offline   Reply With Quote
Old 20th February 2008, 21:44   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Was it Windows x64? Did you disable redirection in .onInit?

Could be the same as:
http://forums.winamp.com/showthread....hlight=license

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 21st February 2008, 11:34   #6
thegrinch
Junior Member
 
Join Date: Jul 2005
Location: Saarland, Germany
Posts: 16
Send a message via ICQ to thegrinch
no, I did not. I actually don't even use the onInit function. Would installing (or: making sure, it is installed) in .onInit be possible? I mean, it's a question at which time the riched20.dll is loaded.

kind regards,
thegrinch
thegrinch is offline   Reply With Quote
Old 21st February 2008, 13:02   #7
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
Better description of the error message would help a lot...

To me it seems that the the system isn't missing riched20.dll, but the riched20.dll is corrupted or something. Googling quickly reveals that corrupted riched20.dll file isn't that far-fetched that it may sound.

The guy with the ridiculous username. Thou shall call him PaR instead.
Visit My Website
{_trueparuex^} is offline   Reply With Quote
Reply
Go Back   Winamp 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