Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all 2105 articles
Browse latest View live

Code does not work: Pre-select a check box/Package (depending on language)

$
0
0
Hi!

I am trying to pre-select a check box after the OS language has been determined. Detecting the language works, but not selecting the required check box

Here is my code, which I put in the "On Preload" of the check box screen:

Code:

-- Retrieve the system's default language ID's
tLangID = System.GetDefaultLangID();

-- Check if default primary language is English (9)
if tLangID.Primary == 9 then
    SetupData.SetPackageProperties("Package03", {Install=true});

-- otherwise default
else
    SetupData.SetPackageProperties("Package02", {Install=true});
end

Any ideas why it does not work? Thank you in advance!

Registry Delete

$
0
0
Hi Forum

is there any different from the HKLM\Software\Classes to HKLM\Software\Classes\Interface?

I'm trying to delete some registry Keys

Code:

Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\CSCOMB.CSComboBoxCtrl.1");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\CSSPIN.CSSpinCtrl.1");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\HHActiveX.GlossaryPane");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\HHActiveX.GlossaryPane.1");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\HHActiveX.HHComponentActivator");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\HHActiveX.HHComponentActivator.1");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\Interface\\{00345390-4F77-11D3-A908-00105A088FAC}");
Registry.DeleteKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Classes\\Interface\\{0BA4BA22-2EF0-11D3-88C8-00C04F72F303}");

All Keys they are directly under Classes was deleted. All with {....} still exist.

Thanks for the hint.
Rolf

uninstaller and fonts

$
0
0
Picking up an issue that was reported off line prior to my registration for the forum ....

problems getting the installer to run consistently when installing a font.

I'm wondering if the issue is related to the uninstaller. It appears, though I can't prove it, that when the uninstaller removes a font, it may not automatically remove the associated registry key, which was set by the installer. That confuses the system so that strange things happen when trying, subsequently, to install or remove the font manually.

Is the uninstaller supposed to remove the registry key that was set in the installation, or is that something that must be manually coded into the uninstaller?

Thanks.

code signing fails even with Anti-virus off

$
0
0
OK, all anti-virus turned off - still getting this error frequently:

Number of errors: 1
SignTool Error: The file is being used by another process.
SignTool Error: An error occurred while attempting to sign: C:\Users\shochberg\Documents\Setup Factory 9\Output\InstallPostage$averUpdate.exe
Error 4304: Execute program error executing code signing tool - 0 (1)


Build failed - 1 Error(s), 0 Warning(s)


>>>Hello,

>>Please make sure that you have NO anti-virus or anti-malware running in the background, scanning the files. The reason it works on the second time is because the files were already checked moments before, and therefore aren't being locked again by the antivirus.

>>>>>>This issue relates to code signing.

Build project with code signing - works correctly
Build it again - works correctly
Run the output file (at least as far as the first screen then cancel, or all the way through - doesn't matter)
Build it again - fails with error shown below
Close Setup Factory
Open Setup Factory
Build it again - works correctly

Here is the error message:

Build failed.

--------- Errors ---------
> Adding file: C:\Users\shochberg\Documents\Complete\SmartBars 12\smartbars12.ttf
Error 3023: Failed writing setup size to archive prior to code signing (32).
--------------------------

Shared Files / Uninstaller does not delete file

$
0
0
Hi,

There is a strange behavior in my setup and I hope you can help...

I have a DLL that is part of a package in the setup project.
In the advanced options, I set to "Shared Files" to use the "usage counter".


The setup.exe installs a DLL into the director, the user specifies.
So far so good.


But if I run the uninstaller (from the system's "remove programs")
the DLL is not deleted. Even if the setup is run only once (so the usage counter should be '1').

Any ideas how to figure out the reason for this behaviour?
Where can I see/edit the usage counter for a specific file?

This problem occurs with any file I want to install with "Shared file" enabled.



Thank you in advance!

Un attended installation

$
0
0
Hi, I have setup that is a collection of 7 differant installation from various vendors, I make the setup.exe, with the scripting y calling the various .exe one after the other.
But the user still has to Click Next, OK ....and so on.
any help to avoid this.

Validate Text Field on entry

$
0
0
Is it possible to validate a text field on entry?

We have our own format and internal key of serial number. I would like to disable Next> until somebody has entered the correct format.

This would mean to disable the button and check the string on entry of every char.

Simple perusing of the built in LUA functionality did not show a way, but there still might be...

-- Harald

Change Uninstall.exe location to App Folder?

$
0
0
Can the Uninstall.exe be located in the Uninstall folder of the application folder or perhaps a subfolder of the organization folder that holds them?

In Windows 8.1, we had a rare occurrence where the files in Windows ended up damaged somehow. We have had 4 incidences in many thousands (no clear estimates, we do not have full data on updates.)

Prrotection of Lua code?

$
0
0
Are the Lua sources protected in any way or can the installer be decompressed and the sources be found?

Setup Factory LUA Library for Debug in other IDEs

$
0
0
I found the debug cycle of more complex Lua functions not related directly to Setup functions rather painful inside our project, since I have to build the whole thing for every cycle. A dummy project might help, but is still suboptimal.

One way to accelerate the cycle is to debug using standard Lua with something like ZaneBraneStudio. But the library functions like Strings do not conform. I was able to get my function to work there fairly quickly, but then had to spend 30 min. changing capitalization etc. to get it going inside Setup Factory.

Is it possible to have access to the Lua library file for that as an include?

%LempLaunchFodler% restrictions on Windows 8?

$
0
0
I was trying to include a DLL as a Primer file in my installer. Although EXEs tend to work, the DLL refused to copy during execution.

What I was actually trying to use was uninstall.exe and lua51.dll as a fallback solution for a bad uninstaller to remove the previous install cleanly.

Other files have had no issues.

Is that typical behavior?

Edit Title headers in this forum?

$
0
0
Ok, I have now two headers with clumsy typos. It looks like I can edit the body of the posting, but not the header?

Or am I overlooking something and just need more intelligence or sleep?

launch on finish crashes acrobat reader

$
0
0
Hello,
I'm using this code for a checkbox on a finish screen. It works great if I am trying to open a .txt file, but if I use it for a .pdf, not only does it not open the .pdf but it breaks Acrobat so that no pdfs will open even directly until restart.

What am I doing wrong?

if check02 then
File.Open(SessionVar.Expand ("%AppFolder%".."\\Postage $aver\\Help\\Postage Saver Help.pdf"), "", SW_SHOWNORMAL,false);
end

New Version Available 9.5.0.0

$
0
0
Today (February 10, 2015) we have released a new version of Setup Factory (v9.5.0.0). Commercial users can download the new full installer from your customer portal.

This release contains the following features and bug fixes:
  • Feature: Added Windows 10/Server 10 support to Setup Factory's design environment and supporting files.
  • Feature: Added Windows 10/Server 10 support to Setup Factory's runtime and supporting files.
  • Feature: Added Windows 10/Server 10 (Server version is tentative) to the OS conditions tree.
  • Feature: Added Windows 10/Server 10 to the System.GetOSName action.
  • Feature: Updated SUF's documentation where applicable.
  • Feature: Performed Windows 10 compatibility testing on SUF's design and runtime using the Windows 10 Technical Preview.
  • Fix: Updated distributed upx.exe to version 3.91.0.0.
  • Fix: Updated the System.GetOSProductInfo action with 16 additional constants.
  • Fix: Improved the resizing behavior of the Control Panel tab of the Uninstall Settings dialog.
  • Fix: Made it so that setting _UninstallStages["RemoveUninstallFiles"] to false would also leave behind the uninstall runtime.
  • Fix: Fixed a crashing bug in Setup Factory's design environment that only occurred when running the Windows 10 Technical Preview on a Virtual Machine. It occurred while adding files.
  • Fix: Fixed a couple spelling mistakes in the setup's build log.
  • Fix: Fixed a bug where the Windows XP runtime conditions weren't working properly.
  • Fix: Added version resource information to the distributed copies of lua5.1.dll (x86 and x64).
  • Fix: Fixed an issue where sometimes installing a font file would fail to detect that the file was in use causing an extracting error.
  • Fix: Fixed a bug where the trial version of Setup Factory's design environment would fail to launch on the Windows 10 Technical Preview.

Session Varaiables Help needed

$
0
0
Hi there.

I am trying to build a project that will deliver Microsoft Word 2013 templates to the "logged on user" default template folder. For a Win 7 and Office 2013 user the folder is:

C:\Users\%LoggedonUser%\AppData%\Roaming\Microsoft \Templates

This may change with different MS Office versions which will be built with a different location.
How do I make the %AppFolder% default to this location on the users computer?

Any help appreciated.

Thanks
Ken

prevent errors when creating art compression

$
0
0
Hi,

why do I get in some windows versions compress an error and how can I prevent this when creating the setup !?

Sharing violation when copying files - Setup hangs - need to continue

$
0
0
Hi there,

I get serious error message and the Setup hangs up during file copy process (Scree: While installing) when copying .MSI and .CAB files. Sometimes it occures when the .MSI file is copied and sometimes when the .CAB file is copied.
The Setup hangs and can only be closed by using the Windows Task Manager.

We use the EXTERNAL file list for the Setup.

According to the Error-Message of irsetup.exe "Encountered a sharing Violation while accessing [PATH]\FILE.cab" I searched the Forum and found this thread:
http://www.indigorose.com/forums/thr...tracting-files

I tried to disable the Antivirus and it worked. But for our customers it is not possible to just turn off the Antivirus on the Server.
We have to install the Software in an arbitrary Folder (not into the Programm Folder) on a Server so that the Software can be used on other Client PCs. BTW, client PCs got a seperate Setup that is used then to create shortcuts to that program and so on.

That is a seriouse Problem, because the Setup hangs after that error message and therefore needs to be closed using Windows Task Manager. Is there a posibillity to create a RETRY Option for files that can't be copied during this process when they are currently in use?

What I also experienced is that the file was copied correctly and can be used/opend. But it seems that irsetup tries to access it again after copying but the file then is in use beacuse of the anti Virus or something like that. I really don't have a cloue why irsetup.exe tries to Access the file again or hwat exactly happens.

I also tried to use different Options on that file:
  • Disable CRC
  • FileSafe
  • Suppress "In Use"
but nothing helps.

Well, I really need a option during the copy process that makes it possible to wait a Little bit, if a file is in use and then retries what ever irsetup.exe tries to do to continue the copy process.
Is there a possibility to add something liek that or do new Versions have that Option. What are the posibilities expect turning off the anti Virus.

BTW: Anti Virus is Trend Micro Office Scan-

How best to chain (handle the return codes of) inter-dependent silent installations

$
0
0
Hi,

It's been several years since I last dabbled with SUF and I'm rusty with action scripts, LUA, and so on. I wonder therefore if someone could offer me some guidance so that I don't end up reading a manual and attempting trial & error for hours on end and getting nowhere!

I'm sure my requirement must have been encountered by someone else before now. My installer, as well as my own files, is dependent on three other items, namely: .Net (minimum 4.0, I was thinking of using 4.5.2), which in turn is required for MySQL Community Edition, and finally everything requires a Java 8 JRE.

Using a Windows VM that I can snapshot and rollback as and when required, I've downloaded the three offline installers and some instructions. I've tried each of the installers and proved they worked by running them from the command line in silent mode. I've then rolled back the VM so it is clean again.

So far, so good. I'm now ready to replicate these actions in my SUF script. However, my concern is this: when running from the standard Windows command line, I notice that the command prompt returns pretty much immediately, but the installation of the relevant third-party product goes on in the background (as an example, the .Net installation log tells me that it took about 3 minutes to complete). Because of the need to have these third-party installers run synchronously (i.e. check the return code from one before the next starts), I'm not sure how I should instruct SUF to handle this chaining.

Apologies if this is a dumb question, but any advice would be appreciated.

Thanks

External Files missing from RunTime Folder being deleted in Destination

$
0
0
Let's say I have these files in my AppFolder from a previous install: MyFile1.exe, MyFile2.exe, Myfile3.exe and Myfile4.exe.

Next I create a project with MyFile1.exe through MyFile4.exe in the External Tab with TempLaunchFolder as the RunTime Folder and the AppFolder as the Destination. Overwrite is set to IfOlder.

Now I create a ZIP file MyPatch.zip with new versions of MyFile1.exe and MyFile2.exe (only). MyMyPatch.zip is included as a Primer File which will be expanded into TempLaunchfolder when the install is run.

Lastly I add Application.IgnoreLastError() to the OnInstallError Tab to suppress the error message for the missing MyFile3.exe and MyFile4.exe when the install is run.

When I run the setup, MyFile1.exe and MyFile2.exe are properly updated in the AppFolder to the new versions. But MyFile3.exe and MyFile4.exe are deleted from the AppFolder!

It appears that if an External File is missing from the RunTime Folder it is also deleted in the Destination!

Is this a bug or a feature? Is there a way to stop it from deleting files in the Destination Folder?

I am using SUF 9.3.2.0.

Thanks.

SetupFactory - authData not being set with HTTP.SubmitSecure

$
0
0
Hi

I am trying to send up the AuthData via a HTTPS secure post to an Apach server running PHP.

However when populate the values in setup factory, when the server receives the post the Auth data is blank.

I am using this code to populate the post:

mypost = {firstname = "peter"};
authData = {UserName="12345",Password=""};
result = HTTP.SubmitSecure("https://server.com/users", mypost, SUBMITWEB_POST, 20, 443, authData, nil);

But when we log the PHP _SERVER variables we get
PHP_AUTH_USER = []

Out apache server is using mod not cgi, so as far as I know it should all be working.

Has anyone successfully passed authdata to a server using HTTP.SubmitSecure call ?

Thanks
Peter
Viewing all 2105 articles
Browse latest View live