I'm not sure how to implement this construct in C# and hoping that someone can show me what the syntax might look like.

I have the following _vbscript_ code that I use to change the ProductVersion number property inside of an InstallShield project using _vbscript_ that is called from my NAnt script, but would like to get it into a C# script function.

    Set oProject = CreateObject("SAAuto11.ISWiProject")
    oProject.OpenProject strIsmFile
    oProject.ProductVersion = strVersion
    oProject.SaveProject
    oProject.CloseProject

Can anyone please show me how to get this code working in the script task?

      <script language="C#">
          <code>
            <![CDATA[

{
code stuff here
}
                      
            ]]>
          </code>
      </script>
   
   
Thanks much!

~Robert
 

Reply via email to