Johan Burger


Hi,

I publish my application to our development server. I then manually copy everything to our Test server, change all the db connection info, resign manifest, etc. and the app works great.

The problem occurs when a user, without the .Net framework, runs the app for the first time from the test server. The installer tries to install the .Net framework from the development server instead of the test server. Where do I change the prerequisite location after a publish My app is set to download the prerequisites from the same location as the app.

Thanks,

JohanB.



Re: Change prerequisite location after publish

Yu Guo ¨C MSFT


Hi, Johan,

Have you changed your Prerequisites in the Publish tab

I think if you change the Download URL to the new server and republish, it should solve your problem.

Hope this helps,

Regards






Re: Change prerequisite location after publish

Johan Burger

That is the problem, I cannot republish. I have to run the app from 2 locations. I publish to the one (which works fine) but then I copy to the second which has the problem. Unfortunately I cannot publish to the second since it is on my client's network.






Re: Change prerequisite location after publish

Yu Guo ¨C MSFT

Hi, Johan Burger,

Have you ever tried "Download prerequisites from the save location as my application"

If it is still not working, I think you would have to download from the vendor.

Hope this helps,

Regards






Re: Change prerequisite location after publish

Johan Burger

Hi,

"Download from the same location as my application" is the one I'm having problems with. It's trying to download from the location I orginally publish too and not the location where the app is currently running from. I have since changed it to the vendor option and that does work but I would prefer to download from an internal server.





Re: Change prerequisite location after publish

Yu Guo ¨C MSFT

Hi, Johan Burger,

Then we will have to edit the "publish.htm".

Please open the file with any text editor, for example, notepad.exe.

Find the following segment '<A ID="InstallButton" ',

if its href field is "setup.exe", please change it to "dotnetfx/dotnetfx.exe".

This should work, if it says 404 error, please change the webserver setting to allow exe downloading.

Hopes this helps,

Regards






Re: Change prerequisite location after publish

Ashishj76

HI

Change the URL and componentURL in the setup.exe i.e. the BootStrapper file from the command prompt. The command is setup.exe /url="http://machinename/prerequisite"

This should solve you problem...

Thanks
Ashish




Re: Change prerequisite location after publish

Yu Guo ¨C MSFT

Hi, Ashishj76,

The url parameter may not help for components, if you want to change the components installation path,

you will have to use the setup command as

setup -componentsurl="http://yourserver/yourapplication".

But it's not easy to pass this parameter in the publish page,

so I do recommend the user to download the .Net Framework instead.

Regards






Re: Change prerequisite location after publish

Johan Burger

Thanks Yu, looks like this is working.