ICE38
Hi everyone,
is this something that you normally fix when you repackage an application or do you just ignore it?
Have you had any problems if you don't fix it? [>:]
Thanks
is this something that you normally fix when you repackage an application or do you just ignore it?
Have you had any problems if you don't fix it? [>:]
Thanks
0 Comments
[ + ] Show comments
Answers (13)
Please log in to answer
Posted by:
slb
18 years ago
Posted by:
Nicklas
18 years ago
Posted by:
rikx2
18 years ago
Posted by:
Nicklas
18 years ago
Posted by:
MSIPackager
18 years ago
Hi Nicklas
Using a file in the users folder as a keypath is not advised as the user will have rights to delete it - if they do it would cause a repair when the user really does want rid of that file..
Using a HKCU reg key means users won't be easilly able to remove the keypath causing a repair - but if the keypath doesn't exist to start with the MSI (say for advertising purposes) will repair and write the current user file/s installed by that component.
Hope that makes sense, it did when I typed it [;)]
It's standard MSI validation rules - more info here.
Cheers,
Rob.
but why do you have to use the registry as key path, why can't you use a file in the user's folder?
Using a file in the users folder as a keypath is not advised as the user will have rights to delete it - if they do it would cause a repair when the user really does want rid of that file..
Using a HKCU reg key means users won't be easilly able to remove the keypath causing a repair - but if the keypath doesn't exist to start with the MSI (say for advertising purposes) will repair and write the current user file/s installed by that component.
Hope that makes sense, it did when I typed it [;)]
It's standard MSI validation rules - more info here.
Cheers,
Rob.
Posted by:
Nicklas
18 years ago
Thanks,
I have a slightly different view on this. I thought key paths where used for "required" files/registry keys. If the key path is broken (e.g. the file is missing) then the msi will repair the application making it work again. If the file is not "required" and the application works fine without it, I don't see a point in setting it as key path. If I have a "required" user file and the file is deleted for some reason, how would I get it back if my key path is a registry key that is ok?
I have a slightly different view on this. I thought key paths where used for "required" files/registry keys. If the key path is broken (e.g. the file is missing) then the msi will repair the application making it work again. If the file is not "required" and the application works fine without it, I don't see a point in setting it as key path. If I have a "required" user file and the file is deleted for some reason, how would I get it back if my key path is a registry key that is ok?
Posted by:
rikx2
18 years ago
Posted by:
Nicklas
18 years ago
Hi,
I have never seen msi repair an application because of a modified file, I tested, but could not force a repair by modifying files (maybe i didn't do it right).
How can the repair be unwanted if the file is required by the application to run?
Or are you telling me that "required" files should never be placed in user only folders?
Thanks again.
I have never seen msi repair an application because of a modified file, I tested, but could not force a repair by modifying files (maybe i didn't do it right).
How can the repair be unwanted if the file is required by the application to run?
Or are you telling me that "required" files should never be placed in user only folders?
Thanks again.
Posted by:
slb
18 years ago
Posted by:
rikx2
18 years ago
Posted by:
Nicklas
18 years ago
Posted by:
Nicklas
18 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.