Hi
Cool Code Nice new way. Here is also another way but it has some manual intervetion
After publishing in development machine we copy the application to client now we have to change deployment url
do this copy mage.exe file this will be available with .net framework 2.0 sdk
and create a bat file put this following command
mage.exe -Update setuptest_1_0_0_2.application -ProviderUrl http://127.0.0.1/setuptest/setuptest.application
mage.exe -Update setuptest_1_0_0_2.application -AppManifest setuptest_1_0_0_2\setuptest.exe.manifest
mage.exe -Sign setuptest_1_0_0_2.application -CertFile setuptest_TemporaryKey.pfx -Password mypassword
mage.exe -Update setuptest.application -ProviderUrl http://127.0.0.1/setuptest/setuptest.application
mage.exe -Update setuptest.application -AppManifest setuptest_1_0_0_2\setuptest.exe.manifest
mage.exe -Sign setuptest.application -CertFile setuptest_TemporaryKey.pfx -Password mypassword
check this
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2939893&SiteID=1
Now i will give u a secound problem. if you use app.config with u then you have to change in client place then you have to follow this procedure. This will work only one time I mean before installing the application in the click once. After installation if you change and even update the manifest the same will not reflect in the client app so u have to think of a alternative way. I am using a web service to change my app.config file
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2951707&SiteID=1