You can create a FBA OnceOnce resource for your CMD file.
You can either create a component for this in Component
Designer, or you can add one as an Extra Resource in
Target Designer.
Here is what you can do:
In the Extended Properties of the RunOnce Request, fill
out the following fields:
File Path: express as DIRID, not hard coded path:
Example: %11%\MyCMDFile.CMD = \System32\
Flags:
0 = Run Every time the system starts
1 = RunOnce Runs only once, each time a user
logs in for the first time
2 = RunOnceEx Same a RunOnce, but launches
after the Explorer shell is loaded (not used much)
ValueName: MyCMDFile.cmd
Do not enter anything in the Arguments field unless your
CMD file requires Arguments to be passed to it.
David