Nov 07, 2013
08:10 PM
I am trying to write an an uninstaller for an installscript project. I originally wrote my project in basic MSI, but needed the functionality of install script. I tried installscript Msi, but that freezes on me when I build it. All I would like to know is how to make a certain method run only when I try to uninstall the project.
... View more
Labels
- Labels:
-
InstallShield 2013
Nov 07, 2013
07:31 AM
In my basic MSI project I need to schedule a reboot and then, after the reboot, continue with the installation. I can't figure out how to do this, can anyone point me in the right direction?
... View more
Labels
- Labels:
-
InstallShield 2013
Oct 31, 2013
06:52 AM
Thanks for your help, but I just forgot the HWND and hMSI parameters in the prototype and function definition. It all works well now. And I want my script to execute after all the files are placed on the target computer which is why for method2 I selected After InstallFinalize, is there a better way to do that? By entry point function I meant the function that the CA tries to call, I read the name somewhere.
... View more
Oct 30, 2013
09:39 AM
As for what kind of CA, I am not sure how to answer that. I am very new to installsheild. I only used to rule files because I though it would help. It seems that if I use to different entry points on the same setup.rul that installer ends abruptly, but it works fine with one entry point. I am Using a Basic MSI Project with Return Processing = Synchronous (Check Exit Code), In-Script Execution = Immediate Execution, Execution Scheduling = Always Execute. Under Sequence -> Install Exec Sequence = After InstallFinalize. I would like method1 to run After costFinalize and method 3 to run on removal.
... View more
Oct 30, 2013
06:50 AM
Thanks for the quick reply, but my first problem is that I can't even get 2 CAs to work together. What I want is to run CA1 after event1 and then CA2 after event2. I haven't gotten that to work yet. and then After that I can add CA3 on REMOVE="ALL"
... View more
Oct 30, 2013
06:25 AM
I have been attempting to get my script to execute different functions at different times during to install/uninstall process. My question is how do I do this. My goal is to run function1, download the installer files, run function2, then on uninstall run function3. I tried creating the setup.rul with exported prototypes for function1 and function2. I also tried having 3 .rul files, setup.rul, function1.rul and function2.rul where setup.rul includes function1.rul and function2.rul. Also, on top of this can someone show me how to include function3 during and uninstall or point me in the right direction? I really appreciate the help.
... View more
Labels
- Labels:
-
InstallShield 2013
Oct 29, 2013
12:44 PM
I have been looking through a few threads and can't seem to find a solution. I have a sample installer that installs C:\Sample\image.ico and C:\Sample\test.exe. On the project assistant screen I set InstallShield 2013 professional to create a desktop shortcut for test.exe. What I am trying to do is have image.ico as my desktop shortcut icon. On the installation designer screen I tried pointing the icon path to [INSTALLDIR]image.ico, but the browse option forces me to hardcode a path on my pc. Can anyone help me or offer a different way of accomplishing my goal?
... View more
Labels
- Labels:
-
InstallShield 2013
Oct 28, 2013
08:02 AM
I read this tutorial http://www.ni.com/white-paper/3056/en/#toc1 which showed how to go into the project properties and set the linker to look for the .def file that you suggested I create and I got it to work. Thanks so much for your help.
... View more
Oct 28, 2013
06:25 AM
The project I am using is a Basic MSI project, I tried to use the UseDLL() method and also tried to create a custom action for the dll. In creating a custom action, the method doesn't show up in the method browser when I click on the ellipse. I also tried depenpancy walker and the function signature does show up.
... View more
Oct 24, 2013
01:01 PM
I am currently using InstallShield 2013 and Visual Studio 2010. I have been attempting to create a .dll file for use with installShield. I am able to load and unload my .dll, but when I try to call the method from the dll, the installer ends abruplty. I have read multiple forums and cannot find a solution. I will post my code below: InstallScript: #include "ifx.h" #define My_dll "c:\\users\\...\\documents\\visual studio 2010\\Projects\\HelloWorld\\Debug\\HelloWorld.dll" prototype cdecl HelloWorld.Hello(); export prototype MyFunction(HWND); /////////////////////////////////////////////////////////////////////////////// // // Function: MyFunction // // Purpose: This function will be called by the script engine when // Windows(TM) Installer executes your custom action (see the "To // Do," above). // /////////////////////////////////////////////////////////////////////////////// function MyFunction(hMSI) NUMBER nResult; begin nResult = UseDLL (My_dll); if (nResult = 0) then MessageBox ("UseDLL successful \n\n.DLL file loaded.", INFORMATION); else MessageBox ("UseDLL failed.\n\nCouldn't load .DLL file.", SEVERE); endif; Hello(); <-----------------------------------------------------------------------DLL function call if (UnUseDLL (My_dll) < 0) then MessageBox ("UnUseDLL failed.\n\nDLL still in memory.", SEVERE); else MessageBox ("UnUseDLL successful.\n\n.DLL file removed from memory.", INFORMATION); endif; end; Incase you can help debug my C++, Here is what I modified: stdafx.h: // TODO: reference additional headers your program requires here #include "HelloWorld.h" HelloWorld.h: #ifndef HELLOWORLD_H #define HELLOWORLD_H __declspec(dllexport) void Hello(void); #endif HelloWorld.cpp: #include "stdafx.h" #include "HelloWorld.h" void Hello() { MessageBox( NULL, TEXT("Hello World"), TEXT("In a DLL"), MB_OK); } I appreciate the help.
... View more
Labels
- Labels:
-
InstallShield 2013
Latest posts by Johnny_Thunder
Subject | Views | Posted |
---|---|---|
1745 | Nov 07, 2013 08:10 PM | |
2480 | Nov 07, 2013 07:31 AM | |
1219 | Oct 31, 2013 06:52 AM | |
1219 | Oct 30, 2013 09:39 AM | |
1219 | Oct 30, 2013 06:50 AM | |
3489 | Oct 30, 2013 06:25 AM | |
1583 | Oct 29, 2013 12:44 PM | |
2474 | Oct 28, 2013 08:02 AM | |
2474 | Oct 28, 2013 06:25 AM | |
5683 | Oct 24, 2013 01:01 PM |
Activity Feed
- Posted Installscript project - writing an uninstaller on InstallShield Forum. Nov 07, 2013 08:10 PM
- Posted Continue Uninstall after reboot for basic MSI on InstallShield Forum. Nov 07, 2013 07:31 AM
- Posted Re: Multiple Costom Actions on InstallShield Forum. Oct 31, 2013 06:52 AM
- Posted Re: Multiple Costom Actions on InstallShield Forum. Oct 30, 2013 09:39 AM
- Posted Re: Multiple Costom Actions on InstallShield Forum. Oct 30, 2013 06:50 AM
- Posted Multiple Costom Actions on InstallShield Forum. Oct 30, 2013 06:25 AM
- Posted Using a custom image for a desktop shortcut on InstallShield Forum. Oct 29, 2013 12:44 PM
- Posted Re: Using a .dll on InstallShield Forum. Oct 28, 2013 08:02 AM
- Posted Re: Using a .dll on InstallShield Forum. Oct 28, 2013 06:25 AM
- Posted Using a .dll on InstallShield Forum. Oct 24, 2013 01:01 PM
- Tagged Using a .dll on InstallShield Forum. Oct 24, 2013 01:01 PM
- Tagged Using a .dll on InstallShield Forum. Oct 24, 2013 01:01 PM
- Tagged Using a .dll on InstallShield Forum. Oct 24, 2013 01:01 PM