Actually when i m creating setup of my application, i have defined default setup path by declaring productname and manufacturer property...but suppose the version of my application changes then new application should be installed at the previously default path...so default path should be which user has installed application.... to overcome this problem i have set one environment variable of this path..and during next installation i m fetcing this path but i dont know how to set this path as default installation path...so pls help me out...
Setup application
Collapse
X
-
Typically the Windows environment will let you access these variables by using the % character on either side of your variable name. You might be able to get away with setting your install path to be %myinstallpathv ariable%.Originally posted by dhaval321Actually when i m creating setup of my application, i have defined default setup path by declaring productname and manufacturer property...but suppose the version of my application changes then new application should be installed at the previously default path...so default path should be which user has installed application.... to overcome this problem i have set one environment variable of this path..and during next installation i m fetcing this path but i dont know how to set this path as default installation path...so pls help me out... -
Originally posted by MotomaTypically the Windows environment will let you access these variables by using the % character on either side of your variable name. You might be able to get away with setting your install path to be %myinstallpathv ariable%.
But will u tell me how to set this path using vb.net....Comment
-
As in through property window in vb.net it is possible to set the default path, but for dynamic puropse i want to set it through code in vb.net...and first it takes windows path default after that we can set..i.e.Originally posted by MotomaCan't you just set that as the default?
C:/program files/productname/manufacturer name.... but if i want to set as
D:/... as default then how i can do it???Comment
-
Three articles that should help you do what you want to do:
http://www.simple-talk.com/2005/04/2...ith-setup-proj...
This article describes the kinds of custom actions that can be used in your Visual Studio setup project.
Comment
-
Originally posted by SammyBThree articles that should help you do what you want to do:
http://www.simple-talk.com/2005/04/2...ith-setup-proj...
This article describes the kinds of custom actions that can be used in your Visual Studio setup project.
http://www.simple-talk.com/2005/07/1...etup-projects/
Thanks for that link..but actually i have already tried that...but my problem is still at its place...Comment
Comment