Toon posts:

[Visual Basic] *.msi bestand start niet met shell commando

Pagina: 1
Acties:

Verwijderd

Topicstarter
Heey,

Ik probeer een msi bestand te laten openen met de volgende regel:
shell ("apache.msi")
Dit werkt niet, ik krijg een runtime error '5', Invalid procedure call or argument.

als ik een exe open gaat het wel, bv.
shell ("php.exe")

Ik ben weinig bekend in VB, heeft iemand misschien een oplossing?

Grtz stefan _/-\o_

  • Sjeng
  • Registratie: Juli 2001
  • Laatst online: 10-12-2025
de extensie .msi is standaard geassocieerd met de msi installer. Misschien dat zoiets wel werkt?

code:
1
shell ("msiexec  /a apache.msi")


Maar wil jouw provider wel dat je via deze achterdeur, Apache installeerd?

[ Voor 28% gewijzigd door Sjeng op 14-06-2004 12:56 ]


  • RayNbow
  • Registratie: Maart 2003
  • Laatst online: 14:51

RayNbow

Kirika <3

Of je gebruikt de volgende API call...
Visual Basic:
1
2
3
4
Private Declare Function ShellExecute Lib "shell32.dll" _ 
Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ 
 ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, _ 
ByVal nShowCmd As Long) As Long

[ Voor 7% gewijzigd door RayNbow op 14-06-2004 12:58 . Reden: layout ]

Ipsa Scientia Potestas Est
NNID: ShinNoNoir


Verwijderd

Topicstarter
Sorry voor mijn late reactie..

Installatiepad is voor op een server thuis.
Ik heb het op de de meest simpele manier gedaan --> exe bestand i.p.v. msi bestand erop gezet.

tnx 4 the replies