Feb 19, 2014
02:50 AM
Could some one please enlighten me. What should be done to install a .NET assembly we have written. i.e. a simple dll written in C# and packaged as an assembly dll. and What should be done with any associated language satellite dlls (which should end up in a sub-folder e.g \en of the installation folder. What are the extras involved in adding these to the installation package, over and above those actions required for any other file. This must be one thousands of folk need to know and yet I have not found any help on it in the InstallShield help or on your forums. Think I must be missing something somewhere. Please feel free to direct me to (comprehensive) references to the topic. Thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2013
Feb 05, 2014
09:24 AM
I wish to run the scripts earlier in the install. I see no mechanism to control the time the scripts are run using the 'Server Configuration\ SQL scripts\ connections mechanism. I'm trying to avoid the 'applications to be stopped' dialog because SQL Server is listed and we can NOT stop this during our install/uninstall. We have dlls loaded into SQL server (extended stored procedures) but we can un-load them with an sql script. I have tested and confirmed that if this script is executed after the UI sequence and early enough in the execute sequence, the request to stop SQL server is not presented and our install goes through OK.
... View more
Jan 30, 2014
10:44 AM
I believe, in an InstallScript project you can use SQLRTComponentInstall and SQLRTComponentUninstall to run component associated scripts. Can these be called within an InstallScript MSI project ? Or is there an alternative script function to do something similar ? I want to run an SQL script from InstallScript during an installation, either one associated with a component or a custom made string. Does anyone know how to do this and does anyone have an exmpe ?
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Oct 22, 2013
02:25 AM
For the record. For any one interested. I managed to get around this issue by marking the components containing these files to be 'permanent'. Thus they are not checked for being locked on uninstalling the product. Then manually adding them to the RemoveFile table, so the install does remove them. The aforementioned SQL scripts run as before and all seems to be fine. Not the best solution I feel but workable.
... View more
Oct 08, 2013
02:47 AM
No not helpful at all. If you read the item you'd see I'm after the name of the file that is locked. NOT the process or file that is using it. I'm interested in the file in my install that is being prevented from being uninstalled (and hence the task is flagged to require stopping).
... View more
Sep 27, 2013
03:06 AM
The scenario is as: The install places a dll in the SQL server binn folder and uses a script (run later in the install) to register the dll with SQL server, where it provides XP's. However, during the uninstall we run another script to unload the dll from sql server then the file is free to be deleted. The problem: Seems that the un-install finds the file locked by SQL server when it starts, and thus displays the 'File locked' dialog with SQL server in the list. So I need to stop that file causing the dialog display as it is removed without error even if you do not stop SQL server. This is the theory. Would be very helpful if I could get that list of locked files (see last thread). If that is not possible: Q. Can I flag this file to be excluded from the un-installs checking for locked files ? N.B. file must still be removed by un-install. Still would like to get that list of locking files though, as it might point to another culprit. Any help is greatly appreciated.
... View more
Sep 26, 2013
08:23 AM
When I uninstall my product the 'Files in use' dialog appears, listing the applications that are affecting the files. I have read up on 'OnRMFilesInUse' and the help talks about the files that are locked. I don't want the list of applications using the files, I want the names of the files affected. That is, the names of my dlls etc. from the installation that can not be removed because they are in use. Q. How does one get hold of the names of the files that are in use? Q. Can I query the windows installer ? Q. Is there a current list of these in the Installer DB ? Q. Is there a property containing the list of these files ? I've searched the community items and so far, found precisely zero help on this. Surely there is a simple answer to this one ?
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Jun 21, 2013
05:35 AM
The point of running the setup with the /s option and providing it with an .iss file is to eliminate all user interaction. No dialogs or GUI components appear during the install. All data related to dialogs is read in from the InstallScript code around the dialogs (instead of). I should stress this is the only time we run it from within the service. This enables any user on a machine to update our existing software and to allow the process to be automatic (i.e. not require a user decision at all). We have now got it working. The problem seemed to be related to the fact that it would not copy the .msi file to the folder we chose to cache it in on the system. However, it appears that the folder c:\windows\installer is acceptable to the system.
... View more
Jun 17, 2013
09:01 AM
Has anyone ever tried to run an installation setup.exe application from within a Windows service ? I am currently trying to do so (using Installshield Spring 2012) and only succeeding when the service is registered as a COM server. It fails with -3 when it is registered as a COM service. N.B. I am passing it an .iss file on it's command line e.g. setup.exe /s /f1"setup.iss" The command line parameters have been checked thoughroughly. It also works if I drop the silent installation (use of .iss file) even with my COM app registered as a service. It appears it does not like using the silent install method when called by 'createprocess' from the service. I noticed that the temporary files generated, are stored under my login accounts appData folder when NOT running as a service. It uses a windows folder when my COM server is a service. Has anyone come across problems, possibly file access or rights related when using the windows NT account (services run as by default) for running a Setup.exe install file. Any help would be greatly appreciated thanks.
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Jun 17, 2013
04:37 AM
Has anyone tried reading string out of their own resource dlls rather than the Installshield ones (or in addition to) ? If so could you explain how to achieve this in depth please.
... View more
Jun 14, 2013
08:02 AM
I have an InstallScript MSI project and corresponding merge module project that use strings. They already load a common resources file (resources.dll) and access a dialog from it in the merge module. DefineDialog takes a string containing the dlls name and a numeric value of the resource inside. Is it possible to use string resources in a similar manner as I read SdLoadString looks in _isuser.dll and _isres.dll and no mention of searching through other loaded dlls is documented. If this is possible do I just have to declare a numeric constant matching the string resource ID in the DLL to stop build warnings about an undeclared string resource ? Or is there another mechanism altogether ?
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
May 15, 2013
05:01 AM
Hi, I'm having problems setting up a silent install. I have created an InstallScript MSI project. The installation appears to work perfectly during a normal UI installation. Some of the dialogs displayed during the installation have been invoked via an InstallScript Custom Action. I am unsure what to set nvDlg to for the call to SdMakeName (tried 1 and 0 after trying leaving it uninitialized as in the documented example); After the call to SdMakeName svSection is blank and nvDlg is unset; When I run this in record mode i.e. supplying /r flag on command line I get no extra output to the .iss file. I list only what I believe to be the pertinent lines below: function PLSetup(hInst) // This is the start of the CA function STRING svSection; STRING szDlg; NUMBER nvDlg; begin szDlg = "PLSetup"; nvDlg = 1; if (MODE=SILENTMODE) then SdMakeName (svSection, szDlg, "", nvDlg); else DefineDialog (szDlg, hInst, svResourceDLL, DLG_PLSETUP_ID, "", 0, HWND_INSTALL, DLG_MSG_STANDARD|DLG_CENTERED) My understanding of the SdMakeName function is that svSection is created on returning from the function and it used szDlg and nvDlg to creat the svSection name. Q. Why is svSection still blank after SdMakeName call ? Q. Why am I getting no output for the dialog to the .iss file I specify on the command line during record mode ? Thanks in advance for any assistance given.
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Apr 05, 2013
04:51 AM
Yes, changing the settings.xml file did stop the three tables i'm interested from being removed and my script does not report the error any more. But that type of solution is InstallShield install specific and you would have to make note of that customisation so that future installs don't lose this customisation. Would be a lot better if that were a setting in the GUI (e.g. against the table) and saved with the project. thanks
... View more
Apr 04, 2013
11:35 AM
May I point out that this is not a debating society meeting. I'm trying to find a workable solution to things that are required for business. I'm not interested in opinions, it's information towards a solution I seek. btw. I tried the release flag (which seems to be about directories not tables). Unfortunately it did not solve the problem which is : I get a ERROR_BAD_QUERY_SYNTAX returned to the following query if no rows are in the table (i.e. works with available rows): MsiDatabaseOpenView(hDB, "SELECT * FROM `ServiceControl`", hViewSC); So any other InstallShield/InstallScript suggestions would be appreciated.
... View more
Apr 04, 2013
08:48 AM
I'm with Roman1. It is not helpful to keep going on about Wix etc. I thought I made it clear in the opener that this was an InstallScript project. When I ask about tea, I'm not interested in what varieties of coffee are available. When I'm open to alternatives that will be stipulated in the question.
... View more
Latest posts by jonathanqis
Subject | Views | Posted |
---|---|---|
1633 | Feb 19, 2014 02:50 AM | |
728 | Feb 05, 2014 09:24 AM | |
1772 | Jan 30, 2014 10:44 AM | |
1031 | Oct 22, 2013 02:25 AM | |
1031 | Oct 08, 2013 02:47 AM | |
1031 | Sep 27, 2013 03:06 AM | |
3196 | Sep 26, 2013 08:23 AM | |
657 | Jun 21, 2013 05:35 AM | |
1975 | Jun 17, 2013 09:01 AM | |
475 | Jun 17, 2013 04:37 AM |
Activity Feed
- Posted .NET assembly satellite dlls, how to package ? on InstallShield Forum. Feb 19, 2014 02:50 AM
- Posted Re: Running SQL scripts in an InstallScript MSI project on InstallShield Forum. Feb 05, 2014 09:24 AM
- Posted Running SQL scripts in an InstallScript MSI project on InstallShield Forum. Jan 30, 2014 10:44 AM
- Posted Re: Files in use on uninstall on InstallShield Forum. Oct 22, 2013 02:25 AM
- Posted Re: Files in use on uninstall on InstallShield Forum. Oct 08, 2013 02:47 AM
- Posted Re: Files in use on uninstall on InstallShield Forum. Sep 27, 2013 03:06 AM
- Posted Files in use on uninstall on InstallShield Forum. Sep 26, 2013 08:23 AM
- Posted Re: seyup.exe via COM service application on InstallShield Forum. Jun 21, 2013 05:35 AM
- Posted seyup.exe via COM service application on InstallShield Forum. Jun 17, 2013 09:01 AM
- Posted Re: common string resources on InstallShield Forum. Jun 17, 2013 04:37 AM
- Posted common string resources on InstallShield Forum. Jun 14, 2013 08:02 AM
- Posted Unable to get silent install section name. on InstallShield Forum. May 15, 2013 05:01 AM
- Posted Re: Empty tables to be filled on InstallShield Forum. Apr 05, 2013 04:51 AM
- Posted Re: Empty tables to be filled on InstallShield Forum. Apr 04, 2013 11:35 AM
- Posted Re: Empty tables to be filled on InstallShield Forum. Apr 04, 2013 08:48 AM
- Posted Re: Preserving unused tables on compile on InstallShield Forum. Apr 04, 2013 08:43 AM
- Posted Re: Empty tables to be filled on InstallShield Forum. Apr 03, 2013 03:24 AM
- Posted Empty tables to be filled on InstallShield Forum. Mar 28, 2013 06:56 AM
- Posted Re: Returning wrong LONG value from Registry table on InstallShield Forum. Mar 27, 2013 11:43 AM
- Posted Re: Returning wrong LONG value from Registry table on InstallShield Forum. Mar 27, 2013 04:13 AM