Solved

PDW Setup program freezes

Posted on 2001-07-23
22
362 Views
Last Modified: 2008-02-01
I have created a setup program using the PDW.  It runs from a CD.  On certain machines (OS seems arbitrary), the setup program runs through the whole process just fine, until it gets to the end where it says "Setup is now updating your system".  At this point, the setup just freezes and the task must be manually terminated.  Any ideas?

A bit more information.  The setup does not create a folder under Program Files.  It is run to simply register the necessary components to run this program directly from the CD.  If this is an issue, let me know.  TIA.
0
Comment
Question by:vblogic
  • 10
  • 7
  • 3
  • +1
22 Comments
 
LVL 12

Expert Comment

by:roverm
Comment Utility
Maybe it has something to do with user rights ?
Company policy ?
Which OS fails and which runs fine ?

D'Mzzl!
RoverM
0
 
LVL 8

Expert Comment

by:Dave_Greene
Comment Utility
Here is my guess...  The components you are trying to install are currently in process.  I would recommend shutting down all of the applications on the target machine and rerun setup.  If that doesn't work, then I would suggest upgrading to the latest service pack for the version of VB you are running.  Each patch seems to fix something in the PDW.

Good Luck
Dave
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
>>Maybe it has something to do with user rights ?

I dont think so.  For example, I tried it on a laptop running Windows98 and got this problem.


>>The components you are trying to install are currently in process

This I had considered, but I made sure that no other applications were running when I ran the setup.  I have SP4 for VB6.  I have created other setup packages with the PDW that have never had this problem.

The only difference here, is in the components being installed.  Does anyone know any issues of distributing the shockwave flash component and the Windows Media Player component?
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
I have tested this on Windows98 and WindowsME and both had problems.  It runs fine on my development machine, which is Windows2000, but I feel the fact that I have VB installed makes the difference.  In fact, I suppose I have no real hard proof this works on any machine that does not have VB installed.  This is very odd to me for, as I mentioned before, I have created other setup packages with the PDW that have run fine on all Windows OS versions.
0
 
LVL 14

Expert Comment

by:Matti
Comment Utility
Hi!


>It is run to simply register the necessary components to run this program directly from the CD.

Do you register Microsoft redistributables on CD drive? Well, just DON'T! need to install them to system folder.

There is a bossibility to register componets side by side but only on or later than 98 SE also the PDW setup is bad in this, need modify.

>The setup does not create a folder under Program Files.

The program files is not a must but the uninstaller need the log to be placed on that macine.

So someting must be the default of user deffied path for that install.


Matti




0
 
LVL 8

Expert Comment

by:Dave_Greene
Comment Utility
Hey vb, can you post your setup.lst file here...   thanks
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
>>Do you register Microsoft redistributables on CD drive?

Well, the PDW setup program should be taking the components in the CAB file and installing them onto the user's machine correct?


>>Hey vb, can you post your setup.lst file here

I will when I get back to my dev machine at home later this evening.  Thanks.
0
 
LVL 12

Expert Comment

by:roverm
Comment Utility
Maybe you try to install/register something that works fine on a 2000 machine (like CDO) but not on a W98 ?

D'Mzzl!
RoverM
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
I will post my setup.lst file later this evening (US Central time) so you all can see what components I'm trying to register.

Thanks for the input thus far.
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
Here is a setup.lst file:


[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=CPOA.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,6/1/99 1:00:00 AM,101888,6.0.84.50
File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 1:00:00 AM,22288,4.71.1460.1
File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,6/3/99 1:00:00 AM,17920,2.40.4275.1
File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,3/8/99 1:00:00 AM,147728,2.40.4275.1
File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,3/8/99 1:00:00 AM,164112,5.0.4275.1
File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,4/12/00 1:00:00 AM,598288,2.40.4275.1
File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,5/27/00 1:00:00 AM,1388544,6.0.88.77

[IconGroups]
Group0=CD_PRESALE_USA
PrivateGroup0=-1
Parent0=$(Programs)

[Setup]
Title=CD_PRESALE_USA
DefaultDir=$(ProgramFiles)\Project1
AppExe=CPOA.exe
AppToUninstall=CPOA.exe

[Setup1 Files]
File1=@MSCOMCTL.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),7/28/98 6:01:56 PM,1062704,6.0.81.77
File2=@COMCTL32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,608448,6.0.81.5
File3=@swflash.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),11/27/00 2:30:06 PM,405504,5.0.42.0
File4=@Control.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),2/26/01 12:45:32 PM,540672,8.0.0.201
File5=@msdxm.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/3/01 4:17:12 PM,1204736,6.4.9.1117
File6=@CPOA.exe,$(AppPath),,,7/22/01 6:53:20 PM,131072,1.0.0.0
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
i am guessing that at some time during the setup, perhaps it is trying to write to the CD, which may be causing this locking.   any ideas which file it is or how to prevent it?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 14

Expert Comment

by:Matti
Comment Utility
Hi!

Normal VB Wizard setup do not write to CD, it uses temporary folder to copy files.

Msdxm.ocx this could be a problem, it is version sensiteive in case of different OS versions have version need whit it.

Try to burn an other CD, if the master has a writer related problem. Check the filesystem type on CD, ISO 9960 is the most compatabile. (need 8.3 file names)

Here DefaultDir=$(ProgramFiles)\Project1

Default folder name project1 could be a bad choice, but only if there exist a similar folder.

Read the log file (ST6UNST.0xx) and see the position of the falure.

Replace a copy of Setup1.exe and make sure it is from same Servpack level as your VB installation is.

Tho rebuild setup and replace files, there is a bat in the support folder.

 

Matti

 
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
yes i realize the Project1 is not a good choice... i simply used it for testing purposes.  latest news:

it works fine on my machine, the development machine, running Win2k and compiling with VB6 SP4

tried on two Win98 machines now, one desktop and one laptop, and no go...




>>Msdxm.ocx this could be a problem, it is version sensiteive in case of different OS versions have version need whit it.

perhaps...any recommendations to determine if this is so or otherwise???

anyone with a URL pointing me to where i can see how to properly deploy a program that uses the Windows Media Player component?  

i have another 200 points, 500 total, if i can get a solution in the next 2 weeks
0
 
LVL 14

Expert Comment

by:Matti
Comment Utility
Hi!


http://support.microsoft.com/servicedesks/fileversion/dllinfo.asp?fr=0&sd=msdn

Check file versions match Visual Studio / VB


http://www.sysinternals.com/

They have good debuging tools like regmon to detect if registry problem. Also Filemon is good in these.

Those version problems of msdxm.ocx or other controls would not rise in setup they do gome more likely later in program if they do.

The log file ST6UNST shows the last action done in setup and it's in Windows folder if setup has been interupted.
Make sure you are looking correct file these have number extensions and every failed Setup leaves these if you dont delete them.

After files copied it shuld have these sections:
ACTION: DllSelfRegister:

ACTION: ShellLink: This is the program icon in start menu

ACTION: RegKey:
ACTION: RegValue:


Matti
0
 
LVL 8

Expert Comment

by:Dave_Greene
Comment Utility
Hey vb,

One thing that I can tell you is that msdxm.ocx cannot be redistributed.  If you look on your computer for a file called redist.txt, you will see which files you can distribute and to what usage.  I would recommend removing the file from the setup.  You will have to ensure that your users know that installing the media player first, is a prerequisite to running your application.

Hope this helps
-Dave
0
 
LVL 14

Expert Comment

by:Matti
Comment Utility
Hi!

msdxm.ocx cannot be redistributed would not agree. That component has also been in Platform SDK Netshow.

But i do agree that this could be a best choice (just not redistribute)

MSDN CD has on article titled: "Using the Control in a Visual Basic Application"  (msdxm.ocx)

Also here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/placingthewindowsmediaplayercontrolinavisualbasicapplication.asp


Personally i would not buld an desktop application project around this kind of componet, just too many versions an scenarios.
A lot depencence how much do you redistribute how much support, reinstalled Window's could be.

Most functions of it could be easily replaced by couple API cals and program will run faster and lighter whit API.

Try Remove this control from setup, if you can't make the install so, that it won't break any system.

Need to do the version check's and can't let the user deside will he replace or not, most case user won't have knowledge to deside this.
Also side by side install is supported from 98SE and later.


But the main problem here, the install freeze:

Do you have those regmon programs and what do they show and the log?

http://www.mingzi.com/ActiveXinstall.html

File3=@swflash.ocx,$(WinSysPath)\Macromed\Flash,$(DLLSelfRegister),$(Shared),11/27/00 2:30:06 PM,405504,5.0.42.0

http://www.google.com/search?q=swflash.ocx&hl=en&safe=off&sa=G

Matti
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
>>But the main problem here, the install freeze

The freeze appeared to be due to the msdxm.ocx being registered.  I removed it from the project/setup and the setup did complete.  However, the program will not run (due to lack of that component I imagine).  The computer I tried it on has Windows Media Player installed, but it is a Win98 machine, and the version numbers of the msdxm.ocx are a bit different.  So...the program crashed as soon as it started up.

In essence, I am creating a sort of promotional CD for a friend of mine's company.  He has some html content, and some .mpg's he would like to give to his clients on a CD wrapped up in a nice interface.  Everything is fine, except we are struggling to build a reliable install package.  I have heard about just sticking required components on the CD itself, but as I understand it, the program will first look for components in the user's Windows/System path, and if it can't find them, then look on the CD.  However, this will only lead to possible other version problems too correct?


Any suggestions at this point are welcome.  We have gotten pretty desperate and we really need a solution within the next two weeks, at which time he is flying to Mexico to meet with his reps, and would like to have a boxful of these CDs he has promised to bring with him so that they can start handing them out to potential clients.
0
 
LVL 14

Expert Comment

by:Matti
Comment Utility
Hi!

This html line shuld play a movie on html / Web page:

<p><font size="2"><img border="0" dynsrc="..videos/movie.mpeg" start="fileopen"
width="700" height="526"></font></p>


>However,
>this will only lead to possible other version problems >too correct?
Yes if you put an exe file on CD and register objects like media player it will be problematic.

Now if this goes to html documents not exe programs:
If you do put them in cabinets and install component's from ActiveX avare browser Like IE, and let them "download" then the browser will temporery install them.


Need a player like mediaplayer or some other as you choice and set it available only if there is no player installed. Don't think that many of them are today whitout a video player some Win 95A maciens does not have them.


Matti
0
 
LVL 14

Accepted Solution

by:
Matti earned 300 total points
Comment Utility
Hi!


http://planet-source-code.com/

There are MciSendString (winmm.dll) API based mpeg player code samples, then you can make own player. If the time won't be problem, you can see it in couple of days if you can make it whit these codes or not.

Matti

0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
>>This html line shuld play a movie on html / Web page

Well, I was using the msdxm.ocx to play the movies.  I understand I can embed the object into a webpage and play it from there, and provide a codebase for those who do not have the component so it will do the automatic install.  However, I would like to avoid this if possible.


>>There are MciSendString (winmm.dll) API based mpeg player code samples, then you can make own player.

I will look into this...and it seems possibly my best bet.  Do you know if the winmm.dll is included with all OSes?  Does it automatically support the MPEG-1 codec?  I imagine I will find out in exactly what container the video is played...
0
 
LVL 14

Expert Comment

by:Matti
Comment Utility
Hi!

MPEG-1 and other codecs need install as the multimedia devices Windows install does install them but if there are no video player then might not have this either.

Try Intel indeo
http://www.ligos.com/index.phtml?pi=14&n1=products&n2=indeo&Subsector=
http://www.ligos.com/index.phtml?n1=products&n2=indeo&n3=video

Matti
0
 
LVL 1

Author Comment

by:vblogic
Comment Utility
I was able to create a control to play the media files using the API and it has taken care of all of our installation problems.  Thanks so much.  Look for another 200 pointer, as promised.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

10 Experts available now in Live!

Get 1:1 Help Now