This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
cwilliamsson
Level 3
- Revenera Community
- :
- About cwilliamsson
Apr 28, 2011
09:01 AM
Where can I find installation log?
... View more
Apr 27, 2011
11:07 PM
Actually, let me refrase that, I want the NewDialog to trigger only if it is successful. If unsuccessful I want it to do nothing. I guess I could have exit after a certain amount of tries, but that's secondary. Right now NewDialog trigger all the time weather it is successful or not. I've tried to set condition LICENSE_OK, LICENSE_OK="0", LICENSE_OK="1" and not LICENSE_OK, but none of those conditions makes a difference.
... View more
Apr 27, 2011
10:50 PM
OK....I got my code to run!!! YAYYYY!!! Thank you so much for pointing me in right direction for me to get some clues. I seem to only have one issue left now, it is not exiting when serial number is unsuccessfule. I'm not sure what you mean by "separate out". Can you elaborate? This is my C# method: public int validateSN(string SN) { string serialmac = ""; string readmac = ""; serialmac = createMac(SN); readmac = GetMacAddress(); if (serialmac == readmac) { return 0; } else { MessageBox.Show("Serialnumber is incorrect. Please try again or call support and provide this information for a new serial number: " + readmac); return 1; } }
... View more
Apr 26, 2011
10:34 PM
Please help me with this, I am fumbling in the dark trying to solve my problem using this community and knowledge base, but it certainly is not logical to figure this stuff out. I am trying to include .dll file written in C# in a basic MSI project to validate serial number. My method is called "validateSN" and has a string parameter and returns an int (0 or 1). I want to pass the ISX_SERIALNUM value to my method/function. Here are my steps and questions: 1. When adding a custom action do I use standard dll or managed code? a. Here is what I get when custom action is managed code: Class1.validateSN(...) b. Here is what I get when custom action is standard dll: NUMBER=[LICENCE_OK]stskv2::validateSN(in STRING=[ISX_SERIALNUM] 2. Do I need to do anythinge else than in all the other options? 3. These are the events I am doing in the CustomerInformation Dialog: - DoAction LicenceCheck 1 - NewDialog SetupType LICENSE_OK - EndDialog Exit not LICENSE_OK Does this look right? I am just returning 0 or 1 so honestly I dont understand where LICENSE_OK comes in, but I read it somewhere in this forum. Am I going in the right direction? Is this supposed to work? What might be wrong becuase it is just exiting out before really doing anything. I put a messagebox.show in my dll to see if it even enters the method, but it seems it is not.
... View more
Labels
- Labels:
-
InstallShield 2011
Apr 26, 2011
07:31 PM
Have same problem. Did you guys solve this?
... View more
Apr 26, 2011
07:58 AM
OK, maybe I should try that. So I will call a function in the dll from the dialog? How do I do that?
... View more
Apr 25, 2011
12:17 PM
I was hoping there would be another solution that would stick with basic MSI only since I am not comfortable with the scripting. I can probably figure out the actual reading of register value though by reading the RegDBGetKeyValueEx examples as you suggest. The hard part for me may be to actually get to that point in my installsheild project. Can you give me some basic step by step how I would be able to add this custom installscript action into my basic msi and how it would be called after my external c# program finishes? I have figured out how to call the C# funtion with "doaction" on the next button, but I am opening the next screen following the C# program at the same time as the C# function. I don't know how to get this new customaction to start after the C# exe and break out or fail to open if the registry value is unsuccessful. Hope I am making sence.
... View more
Apr 25, 2011
11:23 AM
Hi, I am new to using Installshield 2011. I have been tasked to create an install project that verifies a serial key based on mac address of the computer. Since I am not too good at scripting I chose to use Basic MSI project. Since I had a C# application that checks for mac address and verifies a key, I chose to try to use this inside of the install project. So upon a "next" button in a dialog I am opening my C# exe. With this I can now verify the key based on mac of the computer and it wiorks fine. The last problem I now have is that how do I get the installshield bsic MSI project to realize if my external exe was successful in verifying the key or not? Right now it just continues with the next screen weather it fails or not. So I read somewhere I should "pass" the message to the next dialog through the registry. I have no problems writing the registry from my C# program, but HOW DO I READ THAT REGISRTY VALUE TO MAKE MY NEXT DIALOG TO NOT OPEN IF THE KEY VERIFICATION FAILED? This is my question. Thanks! Catheryne
... View more
Labels
- Labels:
-
InstallShield 2011
Latest posts by cwilliamsson
Subject | Views | Posted |
---|---|---|
3456 | Apr 28, 2011 09:01 AM | |
3456 | Apr 27, 2011 11:07 PM | |
3456 | Apr 27, 2011 10:50 PM | |
12063 | Apr 26, 2011 10:34 PM | |
1768 | Apr 26, 2011 07:31 PM | |
1689 | Apr 26, 2011 07:58 AM | |
1689 | Apr 25, 2011 12:17 PM | |
5511 | Apr 25, 2011 11:23 AM |
Activity Feed
- Posted Re: External C# dll to validate serial number on InstallShield Forum. Apr 28, 2011 09:01 AM
- Posted Re: External C# dll to validate serial number on InstallShield Forum. Apr 27, 2011 11:07 PM
- Posted Re: External C# dll to validate serial number on InstallShield Forum. Apr 27, 2011 10:50 PM
- Posted External C# dll to validate serial number on InstallShield Forum. Apr 26, 2011 10:34 PM
- Posted Re: Serial number validation using c# DLL on InstallShield Forum. Apr 26, 2011 07:31 PM
- Posted Re: Basic MSI reading registry on InstallShield Forum. Apr 26, 2011 07:58 AM
- Posted Re: Basic MSI reading registry on InstallShield Forum. Apr 25, 2011 12:17 PM
- Posted Basic MSI reading registry on InstallShield Forum. Apr 25, 2011 11:23 AM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:11 PM
|