Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Application is published to localhost but then.....
 

Application is published to localhost but then.....

I need to promote the appto a dev server from my localhost. To do this, I copied the application directory from my localhost to the dev website. When I ran it from the dev website, it wanted to install the app files from my localhost (I assume this is embedded in the setup.exe). What am I missing here? Did I miss a step?
FirstAndGoal4  Thursday, September 10, 2009 8:10 PM
It is embedded within setup.exe. You will have to update the url used for the application by running:
setup.exe /url <new URL>.

See the following thread for more details:

http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/9d154712-9c46-423f-9c5b-c4b7d9eca2a1
-- Mike
Mike Wade - MSFT  Thursday, September 10, 2009 8:34 PM
You also need to change the URL of the actual deployment, unless it's going to be identical on every machine you publish it on.

To do that, use MageUI or Mage.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Sunday, September 13, 2009 12:10 AM
It is embedded within setup.exe. You will have to update the url used for the application by running:
setup.exe /url <new URL>.

See the following thread for more details:

http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/9d154712-9c46-423f-9c5b-c4b7d9eca2a1
-- Mike
Mike Wade - MSFT  Thursday, September 10, 2009 8:34 PM
Update it in the publish.htm file? My application is only available online. They do not have any icons on their desktop/toolbar/program files/etc.. They activate the app through a website.

I tried chaning the publish.htm but an IIS error saying the file or directory was not found.

http://x.com/web/setup.exe%20-url%20http://x.com/web
FirstAndGoal4  Thursday, September 10, 2009 8:55 PM

Sorry, I meant you have to run setup.exe from a command prompt to update the url.


-- Mike
Mike Wade - MSFT  Thursday, September 10, 2009 9:18 PM
ah, I see. Thanks Mike. I will give it a shot tomorrow.

next question then.... after I get it work work on DEV, I will need to put it on a TESTING server. After testing has been confirmed, it then will go on the PROD server. My company does not allow changes to files when moving from TESTING to PROD. I suppose I could create a CMD file to do that which the install techs could use when they install the app. Is that how you would do it? Or is there a better way?

thanks,

Mike also......
FirstAndGoal4  Friday, September 11, 2009 1:15 AM
worked like a charm......thanks again.

Mike
FirstAndGoal4  Friday, September 11, 2009 1:58 PM
You also need to change the URL of the actual deployment, unless it's going to be identical on every machine you publish it on.

To do that, use MageUI or Mage.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Sunday, September 13, 2009 12:10 AM

You can use google to search for other answers

Custom Search

More Threads

• How to update after Setup installation?
• Vista shortcut created by Visual Studio Deployment Project
• Nlog & ClickOnce
• application shortcut launches installer instead
• how do i include Microsoft.NET Primary Interop Assemblies in my app setup?
• Pass arguments thru events.
• Click Once deployment issues from TFS Build
• DB Scripts
• ClickOnce WinForm application - How can I apply a number of T-SQL scripts to my Sql Server database?
• GAC Assembly not present until after reboot