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

How to access Table thru ISWiAutomation?


2 replies to this topic

Saugata Guha

Saugata Guha
  • Members
  • 6 posts

Posted 10 July 2002 - 06:28

Hi Friends,
I want to access the tables in the installShield
using the InstallShield Automation(COM) interface.
These can be accessed using Direct Editor.

Usually I do as follows in jscript.
ISWIProject =
new ActiveXObject("ISWiAutomation.ISWiProject");
ISWIProject.OpenProject('MyProj.ism';);
isProps = ISWIProject.ISWiSISProperties;
etc.
I could not find any property for accessing the tables,
of the database.
I would like to update rows and add rows etc.

Using the IDE you can do this by the
Advanced View -> Direct Editor.

You can do it through Windows installer COM interface also.

var  wsh = WScript.CreateObject("WindowsInstaller.Installer");
But you need a .msi project, for this.
.ism does not work for this.

I have to make changes to the  project tables
before I compile the .ism project file.
Any help will be appriciated.
Thanks
Saugata.

CodeSkunk

CodeSkunk
  • Members
  • 9 posts

Posted 16 July 2002 - 17:48

I have had the same issue.
What I ended up doing was JScript/WSH post-build modifications on the MSI package.
It worked quite nicely and if I ever decide to ditch installshield (which is tempting), my post-build steps should still work.

.. just a suggestion
good luck..
CodeSkunk
Sr. Propeller Head
~Making windows my b**ch since '93

Saugata Guha

Saugata Guha
  • Members
  • 6 posts

Posted 17 August 2002 - 03:09

Found out a that
I had the .ism project open in InstallShield
IDE, thats why the code was failing, to open the project.

So the .ism project and the .msi projects are basically
same.
Thanks
sguha@jareva.com