Replies: 1 comment
-
I found an answer, although this seems like lots of work. Perhaps it's because I'm installing to a user folder instead of the program files folder. The XSLT below appears to work.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to install an application per user in the AppData folder. I've figured out how to reference that and how to have the shortcut removed by adding a RegistryValue and RemoveFolder elements to the Component elements that define the shortct and top-level folder. However I have a number of other files and directories that need to be installed as well. I'm using heat with an XSLT to add the RegistryValue and RemoveFolder elements, however I'm stuck with a folder that only has other folders in it, no files. I'm looking for ideas on the right way to handle this for per user installs.
My problem directory structure looks like this
The problem is that "reports" doesn't contain any files and therefore I don't have a place to put the RemoveFolder element.
Here's a snippet of the output from heat + XSLT that shows the issue
Here you can see I have a RegistryValue and RemoveFolder element for the directory "test" in each of the File elements under the Component that contains the Directory.
It seems odd to me that I end up with multiple RemoveFolder entries in Components for Files rather than putting the RemoveFolder element under Directory. Although adding the RemoveFolder entry under Directly is not valid according to the XML schema.
Am I going about this all wrong?
Beta Was this translation helpful? Give feedback.
All reactions