Forum Discussion
Pogo947
Oct 09, 2023Copper Contributor
WIN32 App Install error 0x80070002
I have an app that I am trying to add to Company Portal. No matter how I try to install it (using a powershell script to call the executable, calling the executable itself, and even using a .cmd to c...
Pogo947
Oct 09, 2023Copper Contributor
Unfortunately this results in the error given previously "file could not be found". Any other guesses or recommendations?
Oct 09, 2023
Pogo947 so you have an application placed in a folder called WRT, inside this folder you have all the setup files required along with the exe. you run the win32 app tool and you specify the source folder which is for example C:\WRT and you define WRT.exe as the setup file and the target folder as the output of the .wim file for example c:\output
now before packaging the file open a cmd a file and navigate the exe location, for example cd C:\WRT and click on tab button to reach the exe and check if the cmd will read the exe file as WRT.exe or "WRT.exe". upload the app and define the command as stated in the cmd with the argument /S
if its failed try to upload the app but change the install the behavior to User instead of system
- Pogo947Oct 09, 2023Copper ContributorI did as you said with navigating to the folder and hitting tab until I see the executable, and it is WRT.exe, not "WRT.exe". I reuploaded the app in user context, and install still fails with the same "file not found" error code.
- Oct 09, 2023Thats weird, so when u run WRT.exe /S the app will be installed successfully? Where the path the exe will be installed? Are u using it in the detection rule ?
- Pogo947Oct 09, 2023Copper ContributorOn my local machine, if I run WRT.exe /S, the app will successfully install (silently). It is being installed to C:\Program Files (x86)\Anritsu\Wireless Remote Tools\, and yes, that path is being used in the detection rule.
Could using where the file will be installed to in the detection rule be the issue?