.NETGURU
Problem when remove a file from folder installed using setup proje
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.setup.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Lilly (VIP)
I created a folder called Configuration and added several files to this
folder in a windows set up project. After install, I can see
Configuration/myfile.xml, but when I tried to change the file extension to
myfile.txt or remove myfile.xml, then tried to launch the application, I
always get an info that ask me to install/reinstall the application. Is there
any solution to this problem?

Thanks in advance,
Lilly
Reply to this message...
 
    
Todd Derksen [MSFT] (VIP)
Lilly,
What is happening here is Visual Studio creates advertised shortcuts so on
launch the program verifies that all of its files exist.
To change this behavior a nd cause it not to repair the file, select the
files in the setup project and change Condition = NOT REINSTALL so that
the file will not get reinstalled on a repair and its Transitive = TRUE so
that the condition is re-evaluated. This will cause the installer to flash
on the screen the first time after the file is deleted, while it verifies
that the file should not be reinstalled, but you will not see the installer
after that.

Todd Derksen
--------------------
Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Thread-Topic: Problem when remove a file from folder installed using setup
proje
[Original message clipped]

Reply to this message...
 
    
Phil Wilson
Todd, that is just too wicked, and I love it ;=)
--
Phil Wilson
[MVP Windows Installer]
"Todd Derksen [MSFT]" <Click here to reveal e-mail address> wrote in message
news:cJq8i$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Todd Derksen [MSFT] (VIP)
Thanks Phil, I appreciate all the help you give to people on these message
boards.

Todd Derksen
--------------------
Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[Original message clipped]

Reply to this message...
 
    
Stefan Krueger [MVP] (VIP)
Make sure that registry entry is not selected as the key path of your
component.
Or sue the trick mentioned in another post: give the component a condition
of Not REINSTALL, and also mark it as Transitive.

--
Stefan Krueger
Microsoft Windows Installer MVP

Windows Installer FAQ
www.msifaq.com - www.msifaq.de

InstallSite - Resources for Setup Developers
www.installsite.org
www.installsite.de

"Lilly" wrote:

[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification