Forum Discussion
App installs with no errors, but does not fully install
I assume what you say about how you call regedit is about the Powershell script you use for installing the application?
After you create the MSIX package and install it, how are you launching Regedit to see the changes to the registry? The keys from HKLM\Software\ODBC should be present if you view the registry from inside the packaged app's container.
Chacon Dan Gough TIMOTHY_MANGAN
Tried using CommandInDesktopPackage from powershell. Error attached.
Installed MSIX Commander and ran. Error attached.
I assume my methodology is not working. I copy a folder called DB2 to the Desktop of my Hyper-V I use building packages. When I create the package, I launch Powershell ISE and run the commands below. Can you suggest a better way to accomplish what I'm trying to do?
Start-Process -FilePath "C:\Users\Dave\Desktop\DB2\setup.exe" # *Installs the App
Copy-Item -Path "\Users\Dave\Desktop\DB2\db2consv_zs.lic" -Destination "C:\Program Files\ibm\SQLLIB\BIN\db2consv_zs.lic" *Copies license file
Start-Process -FilePath "C:\Program Files\ibm\SQLLIB\BIN\db2licm.exe" -ArgumentList '-a db2consv_zs.lic' *Activates license
Start-Process -FilePath "C:\Windows\regedit.exe" -ArgumentList "/s C:\Users\Dave\Desktop\DB2\systemodbc.reg" # *Install System ODBC connections
Start-Process -FilePath "C:\Windows\regedit.exe" -ArgumentList "/s C:\Users\Dave\Desktop\DB2\userodbc.reg" # *Install User ODBC connections