The question is how to delete the file named 1.txt.
I have get the idea that I can use remove file,but I want the detail.
Thanks a lot.
http://msdn.microsoft.com/library/en-us/msi/setup/removefile_table.asp?frame=true
Rob
Rob
<Directory Id="SAVEDFILES" Name="savedf~1" LongName="saved files">
<Component Id="remfile" Guid="INSERT-GUID-HERE">
<RemoveFile Id="rem1.txt" Name="1.txt" On="uninstall"/>
</Component>
<Component Id="remfolder" Guid="INSERT-GUID-HERE">
<RemoveFolder Id="remsavedfolder" On="uninstall"/>
</Component>
</Directory>
and then have a property like this
<Property id="SAVEDFILES" Value="D:\saved files"/>
I used the property to set the path because I'm not sure how to specify a directory as being the D
drive. I've done this before and it works fine.
I've had some trouble with getting RemoveFile to work in the past, but hopefully this'll be OK.
Rob
Can I use the property above like this,
<Directory Id="INSTALLDIR" Name="savedf~1" LongName="saved files">
<Component Id="remfile" Guid="INSERT-GUID-HERE">
<RemoveFile Id="rem1.txt" Name="1.txt" On="uninstall"/>
</Component>
<Component Id="remfolder" Guid="INSERT-GUID-HERE">
<RemoveFolder Id="remsavedfolder" On="uninstall"/>
</Component>
</Directory>
2.Last question
Can I connect two property as one property,
that means one's value is "d:\test",the other's value is "test1",I want the
result as d:\test\test1
Can I get this?and how?
Thanks very much.
Yeah, you can do this.
>
> 2.Last question
> Can I connect two property as one property,
> that means one's value is "d:\test",the other's value is "test1",I want the
> result as d:\test\test1
>
> Can I get this?and how?
You need to do it through a Custom Action, which will look something like this.
<CustomAction Id="setMyValue" Property="MyValue" Value="[Property1]\[Property2]"/>
You then need to sequence the Custom Action at some point before you need to use MyValue.
Rob
>
> Thanks very much.