Application deployment

hog

Senior Contributor
Joined
Mar 17, 2003
Messages
984
Location
UK
This is the first time I have tried this and am having difficulty doing it.

I have run through a book exercise, on line help etc and get the same result. .NET Framework not installed. I know I need dotnetfx.exe present which I include in my solution but it still does not work.

Does this mean I have to inform target users to run dotnetfx.exe first, then setup.exe? Is there not a way to have the whole thing automated?
 
Try setting the installation package to run dotnetfx.exe /Q when the user presses install, before actually installing your program.
I haven't used the installer system yet but this should be possible
 
hi,

yes I'm trying to use the bootstap setup.exe file but not getting any joy.
 
I get this Warning when i build my test application which is

WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup.

Does that mean that we should add dotnetfx.exe in the target machine in SetUp Project.

Did you get that warning Hog. May be it is due to that you are not able to run the set up successfully
 
No I have done loads of reading this afernoon. Goes like this.

Any .net app requires the framework on the target PC.

The warning you see is simply telling you that. The runtime of the framework dotnetfx.exe comes with VS or you can download it from the web.

You can also download a bootstrap setup.exe file that you configure via a setting.ini file. This setup file checks if the framework is on the target PC and installs it silently if it does not then install the application.

My problem is I have configured the settings.ini file correctly, and run setup.exe but it errors saying the setup has failed, before it even starts to install my application.

I can install my application and the framework manully OK but need to use the bootstrap way though.

The source files are in CPP I think, which I have not installed and don't know anyway.

Any help out there please??
 
What about Launch Condition? Can we add some code which checks whether the .NET Framework is installed in the target machine if not then we can install the .NET Framework Software.
The thing i don't know is how to check the registry of the target machine
 
The bootstrap file setup.exe downloadable from MS does the detecting supposedly for you. You run this file, it detects .NET or installs it then install your application afterwards.

Just can't get it to do it at present,
 
You need to include your own application setup file in the same directory as the bootstrap setup file, see the following example.

[Bootstrap]
Msi=Setup2.msi
'LanguageDirectory=jpn
'ProductName=Coolea Hazza-Class
'DialogText=
'CaptionText=
'ErrorCaptionText=
FxInstallerPath=NET_Framework/
 
Back
Top