We saved the InstallShield projects as XML and used the xmlpoke task in nant, no messy scriptJ

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Smith
Sent: Tuesday, June 21, 2005 4:38 PM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Porting _vbscript_ into C# Script Task

 

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