v13 Script: finishpkg with WindowsCE

Solved
BR
Ben Ragland
Zebra (OVS) - Manhattan Associates

Has anyone gotten this script to work successfully as a pre-install script in a package?

Why does the documentation specify 1: as the root directory?

Can I reference a file name instead of a folder?

Also, can "if exist" be used in other scripts than finishpkg?

Sorry for my lack of sleuthing here. Working in a production environment and rebuilding packages to test a script gets time-consuming.

7 years ago
Windows
ANSWERS
WW
Wayne Wang
7 years ago

It works fine in my both 13.3.0.3690 and 14.0.2.1226 environments.

I don't know why we use 1: for root directory, but it works fine with it.

I believe you can use a file instead of a folder.

Yes, I also use it to create a rule for my 4th octet.

Solution
MD
Matt Dermody Diamond Contributor
7 years ago

I don't have all your answers but I am fairly certain you can use the if and if exist paradigms with other scripts. 

BR
Ben Ragland
7 years ago

Thanks for the confirmation Wayne. 

The script worked for me as a way to reference a simple .txt file delivered with the same package to prevent reinstallation of redundant packages after coldboot. I also added a pre-uninstall to remove the .txt file if necessary.