michael64142
Gebruiker
- Lid geworden
- 12 okt 2012
- Berichten
- 71
Hi,
Ik heb nu een button die het update programma van mijn applicatie moet openen. Dat programma bevind zich in de zelfde map, maar gebruikers zijn vrij om te kiezen waar het programma geïnstalleerd word.
Ik heb dit al geprobeerd:
Dim strPath As String = My.Application.Info.DirectoryPath
Shell(strPath, ("\updater.exe -checknow"))
Maar ook
Dim strPath As String = My.Application.Info.DirectoryPath
Shell(strPath, "\updater.exe")
Helaas kreeg ik bij beide de error: An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: De conversie van tekenreeks \updater.exe naar type Short is ongeldig.
Wie o wie kan mij helpen?
Groet,
Michael
Ik heb nu een button die het update programma van mijn applicatie moet openen. Dat programma bevind zich in de zelfde map, maar gebruikers zijn vrij om te kiezen waar het programma geïnstalleerd word.
Ik heb dit al geprobeerd:
Dim strPath As String = My.Application.Info.DirectoryPath
Shell(strPath, ("\updater.exe -checknow"))
Maar ook
Dim strPath As String = My.Application.Info.DirectoryPath
Shell(strPath, "\updater.exe")
Helaas kreeg ik bij beide de error: An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: De conversie van tekenreeks \updater.exe naar type Short is ongeldig.
Wie o wie kan mij helpen?
Groet,
Michael