Hi (again)

I tried to set the "PACKAGE_NAME" property as a command line parameter when
running my msi. I have set the property to "MyDir" and there exists a path
c:\Geodata\index\mydir on the computer that the msi is executet on. 

The parameter is set but I get an error: "Could not access network
connection MyDir". 

It seems that my property is overriding the whole path so it feels like even
if I get my custom action to fire att the right time I will still have a
problem... Am I using the RemoveFile statement the wrong way? I want to
remve all files that match the file name "MyCategory*.ind" at
c:\Geodata\index\"[Property set at installation]"\ is there another way to
achieve this?

/Hans


<Directory Id="Directory11" Name="Geodata">
        <Directory Id="Directory12" Name="index">
          <Directory Id="PACKAGE_NAME">
            <Component Guid="5a0d0129-08a6-4f93-92af-7883dea8275d"
Id="Component5">
              <RemoveFile Id="File6" Name="MyCategory*.ind" On="install" />
            </Component>
          </Directory>
        </Directory>
</Directory>


The target directories are initially processed during costing
(CostInitialize, FileCost, CostFinalize). If you want to influence the
initial values you'll need to change them before CostInitialize. After that,
only the file system controls (e.g. PathEdit) can modify the values and
update the costing information correctly, IIRC (can't find a source at the
moment).

The standard actions are documented in the Platform SDK under "Standard
Actions" (online at http://msdn2.microsoft.com/en-us/library/aa372022.aspx).
The default sequence values are listed in the topics below "Using a Sequence
Table" (online at http://msdn2.microsoft.com/en-us/library/aa372404.aspx).
WiX uses the numbers suggested in this topic and used in the sample schema
MSI supplied in the Platform SDK. However, unlike many other tools, WiX only
generates those actions actually required to install the package (for
example, if no COM classes are advertised, the Class table is not output and
the RegisterClassInfo action is not scheduled).

For the WiX custom actions that support, for example, installing a SQL
database or performance counters, see the appropriate .wxs file in the WiX
source code.

-- 
Mike Dimmick


-- 
View this message in context: 
http://www.nabble.com/Sequence-problem%2C-running-a-custom-action-as-early-as-possible-tf4049750.html#a11516458
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to