Solved

VC++, Installshield, and Win2K/XP

Posted on 2002-03-16
8
350 Views
Last Modified: 2013-11-14
The setup.exe for my program was created under VC++ 4.1 with the bundled SDK version of InstallShield.  It works fine under Win95, WinNT, and Win98.  But it doesn't work under Win2K and XP.

(1) Is this to be expected?  


(2) I have a copy of VC++ 6.0.  Is the setup.exe apt to work under Win2K and XP if I recreate it with the InstallShield that comes with this version?  (Note that the program code won't compile under VC 6.0 because of syntax rule changes, so it would be  matter of working with the exe created by VC++ 4.1)

(3) Or am I going to have to buy a commercial installation tool?  Not surprisingly, this was the reaction of the people at InstallShield when I called them.
0
Comment
Question by:hansenk
  • 3
  • 3
  • 2
8 Comments
 
LVL 1

Expert Comment

by:lidorc
ID: 6871423
Hi hansenk,
(1) yes, there are some differences between these versions.

(2) What version of the InstallShield do you have?

(3) What parts of the installation script fail? Cause if the most works, you may be able to write a script that runs the installation script and "helps" it a bit..
Dis you think of using other installation product? something free? like the one that comes with the Win2k?
0
 

Author Comment

by:hansenk
ID: 6871836
(2) My InstallShield (the one that came with VC++ 4) is called "SE" (presumably for "SDK Edition").  I don't see a release number or other more detailed identifier.

(3) The reported failures are spotty--they don't happen all the timer.  I don't have info on where in the install they occur, unfortunately.  (Next time I'll ask for it.)

<<...the one that comes with Win2K...>>
Interesting idea.  My impression is that this uses the Windows Installer.  Other things being equal, I'd rather not get into that; the great majority of the installs are onto machines where that doesn't exist yet.  I know it can be made part of the install; it somehow feels simpler if the setup can avoid it.
0
 
LVL 1

Expert Comment

by:lidorc
ID: 6871873
<<(3) The reported failures are spotty--they don't happen all the time>>???

What do you mean? Your install script sometime works fine on Win2K or XP? If it does.. the the problem is different.. and we'll need more data to debug it.
Did I understand you correctly?
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 200 total points
ID: 6871952
I'll bet that the failures relate to InstallShield attempting to create a Win3x-style "Program Manager" group.  That would have been "standard operating procedure" back when VC 4.1 was in use.  And the OLE-techniques used to do that are know to fail in certain situations and may not even be supported in WinXP.

With very little effort, you should be able to change the settings in InstallShield so that it only creates a Win9x+ -style 'programs folder' and/or a desktop item.

Unless... is there anything unusual that the install does?  Does it register a bunch OCX files and so forth?  Does it attempt to copy DLL files into Windows system directories?  Does it (heaven forbid!) attempt to modify the Win.INI file?

-- Dan
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:lidorc
ID: 6873491
DanRollins, but hansenk said it sometimes works and sometimes not...
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6873603
Yes, and I said:
>>...And the OLE-techniques used to do that are known to fail in certain situations

But I agree, we are shooting in the dark until we get some concrete info on failure modes.

-- Dan
0
 

Author Comment

by:hansenk
ID: 6875334
Thanks for the suggestion.  I'll pursue the 'program group' possibility and confirm if it solves the problem for the first reporter of the problem.
0
 

Author Comment

by:hansenk
ID: 6882194
Haven't been able to confirm with the person who reported the error, but I don't want to leave this hanging.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows installs 1/2 on one drive and 1/2 on another? 11 59
Windows 7 will not update 10 142
WiX Installer 2 61
Where to download ExchangeServer2016-x64-CU3.iso ? 4 65
One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now