cancel
Showing results for 
Search instead for 
Did you mean: 
skjskj
Pilgrim

Execute from Current Directory

How to execute below command in CMD, so that it get executed wherever that folder is copied & it’s not hardcoded to folder

Test.cmd content…
C:\WINDOWS\system32\MSIexec.exe /i "\\xyz\abc\sources\test.msi" TRANSFORMS="\\xyz\abc\sources\test.mst" /QR
0 Kudos
6 Replies
Mistral
Flexera beginner

Re: Execute from Current Directory

MSIexec.exe /i test.msi TRANSFORMS=test.mst /QR
0 Kudos
skjskj
Pilgrim

Re: Execute from Current Directory

Mistral wrote:
MSIexec.exe /i test.msi TRANSFORMS=test.mst /QR


i get the following message...
This installation packages could not be opened. verify that the package exists
0 Kudos
Highlighted
Mistral
Flexera beginner

Re: Execute from Current Directory

Just put TEST.CMD into the same directory where the MSI and the MST is.
0 Kudos
skjskj
Pilgrim

Re: Execute from Current Directory

Mistral wrote:
Just put TEST.CMD into the same directory where the MSI and the MST is.


it works if i double click, but if i run as admin it doesnt work & says....
This installation packages could not be opened. verify that the package exists.

If we run as admin, by default it goes to c:\windows\system32 folder for executing.
0 Kudos