Dec 02 2021 12:18 PM
Hi all,
I have this software https://www.gaomon.net/download/ which I tried to convert into a msi via Advanced installer and no parameters I try works, I cant bypass the accept terms and other bits from the wizard. I have tried /qn, /quiet and /s
Nothing seems to work. If I was going to deploy this via the win32 method would this work? If so which sort of commands would I use as the website for this software doesnt show how to do this!
Thanks in advance!
Jan 18 2022 03:07 PM
Jan 18 2022 10:28 PM
Jan 27 2022 06:57 AM
Jan 27 2022 07:22 AM
Jan 27 2022 07:53 AM
Jan 27 2022 09:36 AM
I have tried using this instead:
Which works on a test machine if I run the install:
What would I need to add to create a shortcut for the app?
Jan 27 2022 09:59 AM
Something like this?
# Create Shortcut to desktop
$TargetFile = "c:\installllocation\executablename.exe"
$Icon = "c:\installllocation\executablename.exe"
$ShortcutFile = "$env:Public\Desktop\applicationname.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.Description = "Application Name"
$Shortcut.IconLocation = $Icon
$Shortcut.WindowStyle = 3
$Shortcut.Save()
Jan 27 2022 11:37 AM
Jan 27 2022 11:05 PM
Jan 28 2022 05:05 AM
Jan 28 2022 06:10 AM
Jan 31 2022 10:41 AM
Jan 31 2022 10:45 AM
Jan 31 2022 11:52 AM
Jan 31 2022 12:17 PM - edited Jan 31 2022 12:21 PM
SolutionPerhaps this you're overengineering ;) What you could do is create a folder on your hard-drive c:\install. Copy all the files and directories like in your screenshot in it (Gaomon, GaomonTablet and the install.ps1.) Create another directory in c:\install, Shortcut for example, and copy shortcuts for your application in it that do work (Just create them on a system on which the applications already are installed) Adjust your install.ps1 script like this
#Copy files
New-Item -Path "c:\" -Name "Gaomon" -ItemType "directory" -force
Copy-Item -Path "Gaomon\*" -Destination "C:\Gaomon" -Recurse -force
New-Item -Path "c:\" -Name "GaomonTablet" -ItemType "directory" -force
Copy-Item -Path "GaomonTablet\*" -Destination "C:\GaomonTablet" -Recurse -force
$Copy Shortcuts
[system.string]$Desktop = [Environment]::GetFolderPath("Desktop")
Copy-Item -path "Shortcut\Gaomon.lnk" -Destination "$($Desktop)\Gamon.lnk"
Copy-Item -path "Shortcut\Gaomon.lnk" -Destination $($env:APPDATA)\Microsoft\Windows\Start Menu\Programs"
Copy-Item -path "Shortcut\Gaomon Tablet.lnk" -Destination "$($Desktop)\Gamon.lnk"
Copy-Item -path "Shortcut\Gaomon Tablet.lnk" -Destination $($env:APPDATA)\Microsoft\Windows\Start Menu\Programs"
Uninstall.ps1 would be something like this perhaps:
#Remove files
remove-item c:\Gaomon -recurse -force
remove-item c:\GaomonTablet -recurse -force
[system.string]$Desktop = [Environment]::GetFolderPath("Desktop")
remove-item "$($desktop\gaomon.lnk" -force
remove-item "$($desktop\gaomon tablet. lnk" -force
remove-item "$($env:APPDATA)\Microsoft\Windows\Start Menu\Programs\gamon.lnk" -force
remove-item "$($env:APPDATA)\Microsoft\Windows\Start Menu\Programs\gamon tablet.lnk" -force
Not sure if you need shortcuts for Gaomon and Gaomon on all locations :) Create a .intunewin package from your c:\install location
Jan 31 2022 10:40 PM
Feb 03 2022 10:49 AM