0

i am trying to call a VB script that i made that in the same solution bud in another project, it is a C# project with windows forms and WIX.

i am building an .MSI installer and when i arrive at a certain form i want it to execute a VB script automatically. the thing is i have no idea how to call a VB script from a C# form. since this is the first time i work with C# and i am not very skilled when it comes to programming.

can someone help me with this?

dario
  • 5,149
  • 12
  • 28
  • 32
F.J
  • 35
  • 10

1 Answers1

0

This question was already answered on Stackoverflow several times. For example in this thread: How to call a VBScript file in a C# application?

Give it a try, if it won't work out, ask again with specific examples of your source code, because that would be a special scenario then.

Community
  • 1
  • 1
prizm1
  • 363
  • 1
  • 11
  • thank you, it does work now. it is strange i didn't find that page since i have searched for more than an hour for an answer on the forum. do you have an idea where i can find some basic information regarding common functions such as opening files/ executing and more that might come in handy for building an installer? a good basic tutorial regarding c# is fine too because my biggest problem now is that i dont know where to start searching or what to look for. – F.J Jun 05 '15 at 09:40
  • The link I've pasted above is also applicable for almost any other file execution, you might want to trigger in C#. Afaik the Process-Class is very handy when it comes down to that. A few links you should take a look at [1](http://www.dotnetperls.com/process) [2](https://msdn.microsoft.com/en-us/library/system.diagnostics.process%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1) [3](http://stackoverflow.com/questions/12448180/silently-execute-a-msi-package-from-c-sharp) – prizm1 Jun 05 '15 at 09:48