Need help running an .exe from Setup's Custom Action

G

Guest

Hi, I'm using vs2005, .net 2 for a C# windows application. I'm preparing a
installation package and I want to add the vcredist_86.exe to my
installation. I add this exe file to my Application Folder of the setup
proejct. I then add this file to the Custom Action's Install node. I set
the InstallaerClass to False and delete the "/Install" fro the Arguments
field. I got an error message when I run my setup at the target win2k
server. When it starts running the vcredist_86.exe, a message pops up
complaining that another installation is still in process and it can not run
vcredist_86.exe. How can I resove this problem? Thank you.
 
P

Phil Wilson

Use the prerequisites button to generate a setup.exe that installs the VC
redist. There's no need to write code for you to do this, and as you've
discovered you can't install an MSI-based setup from inside an MSI setup.
 
G

Guest

Yeah, why didn't I think of that(making it a prequisit). Thank you very
much. But would the prequisit install this? I know it's not able to install
the .net framework as a prerquisit. I'll try it now.
--
Thanks.


Phil Wilson said:
Use the prerequisites button to generate a setup.exe that installs the VC
redist. There's no need to write code for you to do this, and as you've
discovered you can't install an MSI-based setup from inside an MSI setup.
--
Phil Wilson
[MVP Windows Installer]

Pucca said:
Hi, I'm using vs2005, .net 2 for a C# windows application. I'm preparing
a
installation package and I want to add the vcredist_86.exe to my
installation. I add this exe file to my Application Folder of the setup
proejct. I then add this file to the Custom Action's Install node. I set
the InstallaerClass to False and delete the "/Install" fro the Arguments
field. I got an error message when I run my setup at the target win2k
server. When it starts running the vcredist_86.exe, a message pops up
complaining that another installation is still in process and it can not
run
vcredist_86.exe. How can I resove this problem? Thank you.
 
G

Guest

Oh, I just discover that it creates all the prereq in folders and install
them. Thank you very much.
--
Thanks.


Phil Wilson said:
Use the prerequisites button to generate a setup.exe that installs the VC
redist. There's no need to write code for you to do this, and as you've
discovered you can't install an MSI-based setup from inside an MSI setup.
--
Phil Wilson
[MVP Windows Installer]

Pucca said:
Hi, I'm using vs2005, .net 2 for a C# windows application. I'm preparing
a
installation package and I want to add the vcredist_86.exe to my
installation. I add this exe file to my Application Folder of the setup
proejct. I then add this file to the Custom Action's Install node. I set
the InstallaerClass to False and delete the "/Install" fro the Arguments
field. I got an error message when I run my setup at the target win2k
server. When it starts running the vcredist_86.exe, a message pops up
complaining that another installation is still in process and it can not
run
vcredist_86.exe. How can I resove this problem? Thank you.
 
G

Guest

Hi Phil,
After uninstalling my application only, and then launching to install my
application again, the VC++ runtime setup dialog still appears. Anyway to
suppress this since it is already installed from the 1st time I install my
application? Thank you.

--
Thanks.


Phil Wilson said:
Use the prerequisites button to generate a setup.exe that installs the VC
redist. There's no need to write code for you to do this, and as you've
discovered you can't install an MSI-based setup from inside an MSI setup.
--
Phil Wilson
[MVP Windows Installer]

Pucca said:
Hi, I'm using vs2005, .net 2 for a C# windows application. I'm preparing
a
installation package and I want to add the vcredist_86.exe to my
installation. I add this exe file to my Application Folder of the setup
proejct. I then add this file to the Custom Action's Install node. I set
the InstallaerClass to False and delete the "/Install" fro the Arguments
field. I got an error message when I run my setup at the target win2k
server. When it starts running the vcredist_86.exe, a message pops up
complaining that another installation is still in process and it can not
run
vcredist_86.exe. How can I resove this problem? Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top