Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Platformsdk MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 06-25-2010, 01:01 PM   #1 (permalink)
Roberto.Vanoli
Guest
 
Posts: n/a
Default Deploying example files

Hello,
I think my question it's very obvious , but I have not been able to find a
solution until now.

Toghether with my app I deploy 'optional' files in a separated folder. I
want my user be able to remove one or more of these files if he wants.

BUT When app is executed, installation is repaired and deleted files are
restored.
How to prevent this? How to install files at first installation and then
'forget' them?

tried setting various condition on desider files, without success
Condition=NOT REINSTALL, transitive=true
Condition=Not Installed, transitive=false

unclear why something like "Condition=true, Transitive=false" is not working!

any comment wil be useful
thankyou
R.
  Reply With Quote
Old 07-02-2010, 10:01 PM   #2 (permalink)
Adrian Accinelli
Guest
 
Posts: n/a
Default Re: Deploying example files

"Roberto.Vanoli" <RobertoVanoli@discussions.microsoft.com> wrote in message
news:247FC044-2792-4E36-BB5A-ACADD3C074A9@microsoft.com...
> Hello,
> I think my question it's very obvious , but I have not been able to find
> a solution until now.
> Toghether with my app I deploy 'optional' files in a separated folder. I
> want my user be able to remove one or more of these files if he wants.
> BUT When app is executed, installation is repaired and deleted files are
> restored.
> How to prevent this? How to install files at first installation and then
> 'forget' them?
> tried setting various condition on desider files, without success
> Condition=NOT REINSTALL, transitive=true
> Condition=Not Installed, transitive=false
> unclear why something like "Condition=true, Transitive=false" is not
> working!
> any comment wil be useful
> thankyou
> R.


For files that can be removed by the user you shouldn't make them key files
for any of your components.

Changing conditions have no effect on the "self-healing" capability of the
Windows Installer. Typically your shortuct/extension/end point is
associated with Feature A and that feature contains one or more components.
If one of these components has an optional file as its Key file [Key file
meaning that the KeyPath field in the component table for a component points
to the referenced file in question in the File table] then the Windows
Installer will detect that component as "broken" if it does not exist and
force a repair when say MsiProvideComponent is called.

So you can avoid this by:
a) removing these files from KeyPath of any component; or
b) moving the components to a separate Feature which is not the target of a
shortcut/extension etc. They can still come back in repairs in which the
separate feature is reinstalled.
c) Create the files outside the MSI

Sincerely,
Adrian Accinelli


  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:57 AM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com