Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Automation: ExportProject


1 reply to this topic

HNE_MVE

HNE_MVE
  • Full Members
  • 8 posts

Posted 09 December 2003 - 11:39

Has anyone been able to use ExportProject with a source code control program in command line builds (Dev 9)?

During our automatic build proces we are changing and building a InstallShield project. We created manually
a project and added it to source control (Rational ClearCase) by using the IDE.

After ExportProject the InstallShield IDE will not recognize the project as being in source control. Although the file still in source control available is. (It can be checked out and in by ClearCase)

After some a compare we found a change in the ism (xml) file. The property 'SccEnabled' is being changed from '-1' in '0' during
the ExportProject command.

After changing the ism (xml) file manually: '0' -> '-1', the InstallShield IDE will recognize the project
the project as being in source control.

Vbs code we are using:

sCommand = "cleartool checkout -c comment file.ism"
Return = WshShell.Run (sCommand, 1, true)

' SAAuto9SP1: Standalone Automation Interface
Set pProject = CreateObject ("SAAuto9SP1.ISWiProject")

pProject.OpenProject "file.ism", True

Set pProdConfig = pProject.ISWiProductConfigs.Item("product_name")

Set pRelease = pProdConfig.ISWiReleases.Item("release_name")

' Make changes to ProductConfig and Release settings

pProject.SaveProject

pProject.ExportProject "file.ism"

pProject.CloseProject

sCommand = "cleartool checkin -c comment file.ism"
Return = WshShell.Run (sCommand, 1, true)

Many thanks for any comments...

Mark

Edited by HNE_MVE, 09 December 2003 - 11:53.


Art Middlekauff

Art Middlekauff
  • Members
  • 14 posts

Posted 09 December 2003 - 13:43

In DevStudio 9, you no longer need to import and export your project. Just set the project file format to XML (in the General Information view). Your project will then always been in a source-code-control-friendly format.