Lesson 2, Topic 4
In Progress

Fill out PsADT Information in VSCode

John Kraczek October 28, 2024
Lesson Progress
0% Complete

I use VsCode as my text editor, you can get it from the vsCode website or use your own text editor. Right Click on the Package Folder (0037_Autocad_2025 in this case)  and select Open with Code or simply open vscode and navigate to the folder. 

Update pack.ps1

The setup file needs to be added to the intune pack command. You will change Setup.exe in the first line to whatever the name of your setup file is. For this example the setup file is actually called setup.exe so I will leave it be.

Update the Deploy-Application.ps1 inside the PsADT folder

We are going to update 3 things in this file. The Variable declaration the install command, and the uninstall command.  Fill out the relevant fields here for your application:

Powershell
				
					    ##*===============================================
    #region VARIABLE DECLARATION
    ##*===============================================
    ## Variables: Application
    [String]$appVendor = 'Autodesk'
    [String]$appName = 'Autocad'
    [String]$appVersion = '2025'
    [String]$appArch = 'x64'
    [String]$appLang = 'EN'
    [String]$appRevision = '01'
    [String]$appScriptVersion = '1.0.0'
    [String]$appScriptDate = '10.14.2024'
    [String]$appScriptAuthor = 'John Kraczek'
    ##*===============================================
				
			

Next we need to update the install and uninstall commands. Locate the line that says <Perform Installation Tasks Here> then update the line to utilize the silent install command you figured out earlier. 

PowerShell
				
					        ## <Perform Installation tasks here>
        Execute-Process -Path "$dirFiles\Setup.exe" -Parameters "-q"
				
			

Finally we want to update the uninstall command. If the installer comes with a silent uninstall command we can update this line to use that, otherwise we can use the MSI code of the software to uninstall it. 

PowerShell
				
					        ## <Perform Uninstallation tasks here>
        Execute-MSI -Action Uninstall -Path "{}" ## MSI Code
				
			

If you don’t have the MSI uninstall code just yet, we can get it in the next testing step. You will need to come back and put that in here.

0 0 votes
Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x