Re: RegDBSetKeyValueEx failing
- From: "Alan Carre" <alan@xxxxxxxxxxxxxxxxx>
- Date: Mon, 8 Dec 2008 09:20:18 +0700
"raxit@xxxxxxxxx" <raxitsheth2000@xxxxxxxxx> wrote in message
news:fe250d06-5a3f-4753-a24d-83504cc3b4c4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi
Very much new here and hope this question is relavant. [if not please
suggest proper newsgroup]
My installshield script is throwing some error while installing. And
need to checkout what may goes wrong. The same installation works
fine on other machine, however on few machine it is not working !
// File Name: Setup.rul
//
// Description: InstallShield script
#define APPLN_INIT "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\
\Windows\\"
szKey = APPLN_INIT;
szName = "AppInit_DLLs";
nvType = REGDB_STRING;
svValue = szString1;
nvSize = -1;
nResult = RegDBSetKeyValueEx(szKey,szName,nvType,szString1, nvSize);
if ( nResult < 0 ) then
MessageBox("ApplnInit key not available", SEVERE); <-----
abort;
endif;
Seems like RegDBSetKeyValueEx is failing, and we are not able to
replicate this in local environment.
Any thought will be really helpful.
This call will fail under Vista/Longhorn under *any* user account (even
including Administrators I think) unless the installer provides specific
requests to the operating system indicating that it is, in fact, and
installation program, at which time the user will be prompted whether or not
to allow the program to override the normal security features of the OS.
InstallShield is a pretty old program (unless I'm mistaken and they've
released a "vista-compatible" version). You might want to consider using
something more modern, like InnoSetup (free) or just the Microsoft .msi
installer instead of InstallShield [I would suggest InnoSetup personally,
since it's free, extremely easy to use and 100% vista compatible].
- Alan Carre
P.S. I used to use InstallShield many many years ago, and switched to
InnoSetup. But, strangely, I still use InstallShield's GUI basically as an
ini file editor (drag and drop, add menu items visually, components, file
groups etc). Then I have a program which converts from InstallShield script
to InnoSetup script on the command line ;). Quite handy actually...
[paired-down, InstallShield is < 1meg on disk and a great ini file editor!]
.
- References:
- RegDBSetKeyValueEx failing
- From: raxit@xxxxxxxxx
- RegDBSetKeyValueEx failing
- Prev by Date: Re: Being Confused by /EH Exception Handling Model
- Next by Date: Re: Optimization question
- Previous by thread: RegDBSetKeyValueEx failing
- Next by thread: Question on undefined behaviour
- Index(es):
Relevant Pages
|