Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Build exe to run a cmd script

$
0
0

Hello guys

I hope this is the right forum section to post this in, if not please move or tell me

I want to make a exe single clickable exe to do run a script to install software, install a printer and start the software

the script involves copying a folder of the software into the machines program files, then install the shared network printer, then start the printer software

here is my script which Ive tested it it works perfectly:

xcopy /e /c /k /y /R "c:\temp\PaperCut Installer\*.*" "C:\Program Files (x86)\PaperCut Installer\"

msiexec /i "C:\temp\PaperCut Installer\pc-client-admin-deploy.msi" /qn

rundll32 printui.dll,PrintUIEntry /in /n\\PrintServer\LunchRoomPrinter

"c:\Program Files (x86)\PaperCut MF Client\pc-client.exe"

The guides I looked up already provide some info but not really anything for scripts which involves copying a folder then installing a printer and starting the installed program

could anyone provide any useful tips please


Viewing all articles
Browse latest Browse all 585

Trending Articles