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

File can not be deleted via a command!

$
0
0
Hello, I have a problem and hope you can help me!

OS: Windows 7 64-bit
Windows \ System32 \ Drivers \ multikey.sys

File.Delete (SessionVar.Expand ("%SystemFolder%\\drivers\\multikey.sys"), false, false, false, nil);

Note:
The file will be deleted if this would be in the syswow64 folder but this is not the case!

How can delete the file :huh

File.Find and folders

$
0
0
When using File.Find with wildcards, where IncludeFolders is true, is there any way to tell which entries are files and which entries are folders? It does not appear to be possible, but was just wondering if anyone knew of a trick.

I am using the latest SUF 9.5.

Thanks.

null character in string

$
0
0
Is there any way to have a null character in a string that I pass to a DLL in DLL.CallFunction? E.g.,
Code:

  arg = "null character at end\0"
or
Code:

  arg = "null character at end"..String.Char(0x00);
There does not appear to be although supposedly LUA does recognize the null character.

I am using SUF 9.5.

Thanks.

Installer created with SF9.5 shows a warning during Windows 10 Certification

$
0
0
When running the latest version of the Windows 10 App Certification Kit, it reports that the lua5.1.dll has not passed the checks.

Here is a copy of that section of the report:

Quote:

Windows security features test

WARNING
Binary analyzer

• Warning: The binary analyzer test detected the following errors:
◦File C:\Program Files (x86)\****\lua5.1.dll has failed the DBCheck check.
◦File C:\Program Files (x86)\****\lua5.1.dll has failed the NXCheck check.


• Impact if not fixed: If the app doesn’t use the available Windows protections, it can increase the vulnerability of the customer's computer to malware.


• How to fix: Apply the SAFESEH, DYNAMICBASE, and NXCOMPAT options when you link the app. See link below for more information:
Is there a way to replace the lua dll with the correctly built version?, or can I please request that IndigoRose update their lua dll to resolve this issue?

setup factory output executable doesn't run on every system

$
0
0
Hey,

We've just used Setup Factory 9.5 to create an installer to a product of ours for windows.
So far, it seems like everything was working we got installations and reports of use were getting in.
A customer reached out to say that when he download the executable from our website he receives a strange error message "Unable to open archive file" and the installation doesn't follow through.
What can cause this?
To be more specific - Our customers are Israelis. It can be possible that the windows they are using is mainly in Hebrew rather than English.
Are there any solutions to make in the project file to make sure this doesn't happen?

I'd appreciate your help in this because this is a soft launch and we would very much like to prevent this kind of occurrence in our Global launch.
Thanks!

P.S. here is the script we're using to build the installer
Attachment 12866
Attached Files

How to start a non-elevated process at the end of the installation

$
0
0
Hello,

The installer gets executed at the elevated level, with the full administrator rights. When the installer is completed the main application must be run automatically with user's credentials. The Shell.Execute command still runs the application under admin rights.

How to launch the application in Windows 7, 8.1 and 10 without admin privileges?

New Version Available 9.5.1.0

$
0
0
Today (March 2, 2016) we have released a new version of Setup Factory (v9.5.1.0). Commercial users can download the new full installer from your customer portal.

This release contains the following features and bug fixes:
  • Feature: Added SHA-256 code signing support.
  • Feature: Added the ability to dual-sign setups (SHA-256 and SHA-1).
  • Feature: Added a password field for the code signing certificate(s).
  • Feature: Added a few items to the System.GetOSProductInfo action's constants.
  • Change: Removed support for signing with signcode.exe, instead use signtool.exe.
  • Fix: Made several changes in order to prevent errors that may occur due to anti-virus scanning when launching the setup and installing files.
  • Fix: Fixed a bug where registering/unregistering fonts could hang the setup on some systems.
  • Fix: Fixed a bug where temporary font files were not be deleted from the setup's temp folder after the setup completes.
  • Fix: Fixed a bug where session variables set via an uninstall INI file on the command line weren't being set in the uninstall.
  • Fix: Fixed a bug where if a custom screen contained a GroupBox control, tabbing through the controls failed to work properly.
  • Fix: Fixed a bug where using the UninstallData.RemoveItem action with the UNINDATA_SUPPORTFILES item type wasn't removing the item from the uninstall's configuration file.
  • Fix: Recompiled the distributed copies of lua5.1.dll to pass the binary analyzer tests DBCheck and NXCheck.
  • Fix: Changed references in Setup Factory from Windows Server 10 to Windows Server 2016.

Run a Batch file with args as administrator

$
0
0
Hi

I saw an old post regarding launching a batch file as administrator.
(http://www.indigorose.com/forums/thr...+administrator)

But this solution doesn't suits for my problem since my batch file need args also.

this is my code for running the file without administrator privilege:

Code:

winVer=GetCurrentWindowsVersion();
local rc3 = File.Run((SessionVar.Expand("%AppFolder%").."\\RunCACLS.bat",winVer,SessionVar.Expand("%AppFolder%"),SW_HIDE,true);

Can you advise ?

Error 4201: Error UPX compression failed - reason: rename error: Permission denied

$
0
0
I have been getting this error very consistently working on a Windows 7 Professional system (x64), building a 32-bit setup package. I have looked to see if I could turn off compression and didn't see such a possibility (I admit I may be slightly blind). I have to ensure we don't get this issue when I turn this process into an automated packaging system.

The message I receive on a regular basis at the end of the log:

Creating setup configuration file...
Initializing archive file...
Creating archive header...
> Launcher manifest
> Writing version information
> Setup engine
> Setup manifest
> Compressing setup
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013

File size Ratio Format Name
-------------------- ------ ----------- -----------
3818496 -> 1388544 36.36% win32/pe ir_tmp_rtm.tmp

Packed 1 file: 0 ok, 1 error.

upx: C:\Users\jhowland\AppData\Local\Temp\_ir_sf_build_ 0\ir_tmp_rtm.tmp: IOException: rename error: Permission denied

Error 4201: Error UPX compression failed - 0 (1)

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

-----------------

Any ideas?

HTML content of installer history screen not displaying 'first time, every time'

$
0
0
Hi there,

This question relates not to SF 9.5 but version 9.0.2.0. Apologies but my director never got round to paying for the upgrade!

I have a project which builds just fine but, when first run, fails to display the content of the 'Installer History' screen. A plain grey background is displayed inside our themed screen instead of the fixed HTML content which is read from file. The only workaround seems to be to click 'Back' then 'Next' when this screen is reached, at which point the HTML content is then displayed.

I'm wondering if the HTML is not being properly parsed when first loaded, and yet there doesn't appear to be any "fancy" tags or attributes in there, and no errors are displayed. We only use the following mark-up:

<!DOCTYPE html> is the first line. Then there's a <html></html> section as a container for various blocks of <ol></ol> each holding a series of list items <li>text</li>. The <ol></ol> blocks are separated with horizontal rules using <hr></hr>.

Does anyone have any ideas ?

Thanks

Very slow build with SUF 9.5.1.0

$
0
0
Have come back to SUF after a gap of 3 years apparently having "officially" retired from my last day job in 2013 but now find myself writing code for self/friends. Decided easier to use SUF rather than trying to explain to people how to manually install my applications.

Running under Windows 10 x64. Project set to x86 as no idea what end machine runs on. SUF 9.5.1.0 applies.

Whenever I build a project (new or old) the system halts at the process "Compressing Setup" (within "Creating archive header") and "Packed 1 file" and eventually, after about 5 minutes, it continues with the next item to be shown as "Configuration File".Then sits at "Primer file....." for another few minutes.

I tried turning off the option for UPX compress on basis I am on a x64 machine but that made no difference as does not go beyond "setup manifest" obviously trying not to run UPX.

Total build time exceeds 8 minutes for a very small project.

However setting the project build type to x64 results in build time of 7 seconds!

Thanks - John

Bat file command issue

$
0
0
I have created setup with Reference Folder, and added action on Post Install to Run .bat file to extract .arc data to %AppFolder% but when .bat file process starts it always extract data on %SourceFolder% instead of %AppFolder%. I have added .bat file to archive with setup.exe and .bat file is successfully installed in %AppFolder% but unable to extract in its own directory %AppFolder%.
Can some one suggest any solution?

Extracting .arc file to AppFolder

$
0
0
Can anyone tell me how to Extract .arc file to %AppFolder% during installation.
As i know the command work on Windows CMD as
Code:

arc.exe x myfile.arc
but i don't know, how to make it work with Setup file to extract .arc data to %AppFolder% during installation while myfile.arc is present at %SourceFolder% in Reference Directory.

SQL Server 2014 Express

$
0
0
I have an application that has been using Sql Server Express 2008R2.

I'm trying to it working on Windows 10, which means moving to a more recent version of Sql Server Express (2008 won't run on Windows 10).

The application works just fine using Sql Server Express 2014, so now it's just a matter of building an installer that will install Sql Server Express 2014.

SUF doesn't install a SQLExpress 2014 dependency, out of the box, so I went looking, and found this:

http://www.mindquake.com.br/en/dependencies/sql2014

The problem? It won't install on Windows 10. Its installer requires .NET 3.5 SP1, and I've not been able to get that to install on Windows 10.

If I include just the SQLExpress 2014 dependency, when I try to install it I get an error:
Quote:

You do not have the Microsoft.NET 3.5 SP1 or greater installed on your system.
If I include the .NET 3.5.1 dependency, I still get the same error:

Quote:

You do not have the Microsoft.NET 3.5 SP1 or greater installed on your system.
Any ideas what might be going wrong?

Can anyone point me to a Sql Server Express 2014 dependency package that actually works?

Copying problem

$
0
0
Hello guys.
Seems like an easy-to-solve problem.

File.Copy(SessionVar.Expand("%AppFolder%\\Scenery\ \FILE.dxf"), "%OtherFolder%\\World\\Scenery\\", false, true);

...results in no file being copied while both variables were triple-checked to be correct. I am putting the command into the After Installing - On Preload window. The idea is simply to copy the FILE.dxf file (after installation) from %AppFolder%\\Scenery to %OtherFolder%\\World\\Scenery . AM I doing something stupid? ;)

Signing exe file.

$
0
0
Thanks for the tip on ksoftware... My certificate was up for renewal in another month so I just switched to ksoftware.

What I am finding is that I am often getting a message saying that it is unable to sign because "The file is in use by another process".

There is nothing else running . Sometimes closing Setup Factory and restarting fixes it... sometimes not. Any ideas what might be the issue?

Mike

Unwanted applications in start menu

$
0
0
My new installer, when installing on Windows 10, is creating shortcuts for every executable I'm installing, instead of only the ones I want created.

The ones I am creating have proper shortcuts created, with the arguments and working directory I specify. The ones I have not created have no arguments and a working directory set to the location of the executable.

It's not just that these shortcuts won't work, which they won't, it's that the user shouldn't see them in the first place.

Any idea what is going on?

External files

$
0
0
V 9.5

This might just be a miss understanding on my part.

Part of a new installation I am writing depends on about 15 files that are unique to the customer I am building a product for. I am trying to place these in the External file section and copy all into a folder called %appdirectory\quads.

When I run the installation and get to the point they should be installed, I get this message for all of them:

Could not open input File
D:\Filename.xxx

The files are on the CD

<SUF7_CB_FILES>
<FileData>
<FldRef>1</FldRef>
<FullName>C:\GLOBE\Quads\*.*</FullName>
<FileName>*.*</FileName>
<Source>C:\GLOBE\Quads</Source>
<Ext>*</Ext>
<RTSource>%SourceDrive%</RTSource>
<Desc/>
<Recurse>1</Recurse>
<MatchMode>0</MatchMode>
<Dest>%AppFolder%\Quads</Dest>
<Overwrite>1</Overwrite>
<Backup>0</Backup>
<Protect>0</Protect>
<InstallOrder>1000</InstallOrder>
<SCStartRoot>0</SCStartRoot>
<SCStartProgs>0</SCStartProgs>
<SCAppFld>0</SCAppFld>
<SCStartup>0</SCStartup>
<SCDesk>0</SCDesk>
<SCQLaunch>0</SCQLaunch>
<SCStartPinOption>0</SCStartPinOption>
<SCCust>0</SCCust>
<CustSCPath/>
<SCDesc/>
<SCComment/>
<SCArgs/>
<SCWork/>
<UseExtIco>0</UseExtIco>
<IcoFN/>
<IcoIdx>0</IcoIdx>
<IcoShowMd>0</IcoShowMd>
<IcoHK>0</IcoHK>
<RegTTF>1</RegTTF>
<TTFName/>
<RegOCX>1</RegOCX>
<RegTLB>1</RegTLB>
<SupInUse>0</SupInUse>
<Compress>1</Compress>
<UseOrigAttr>1</UseOrigAttr>
<Attr>0</Attr>
<NoCRC>0</NoCRC>
<NoRemove>0</NoRemove>
<Shared>0</Shared>
<OSCond>
<OS>32768</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
<OS>65535</OS>
</OSCond>
<RTCond/>
<BuildConfigs>
<Cfg>All</Cfg>
</BuildConfigs>
<Package>None</Package>
<Packages/>
<Notes/>
<CompSize>0</CompSize>
<CRC>0</CRC>
<StoreOnly>0</StoreOnly>
</FileData>
</SUF7_CB_FILES>

to allow problem-start a particular file

$
0
0
Hello,
I have a particular file which can not be started by command and since the question arises why ??

result = File.Run ("C:\\Windows\\ETK7\\PROG\\xxxx.exe", "", "", SW_SHOWNORMAL, true);

result = File.Run (SessionVar.Expand ("%AppFolder%\\Windows\\ETK7\\PROG xxxx.exe"), "", "", SW_SHOWNORMAL, true);

result = File.Run (SessionVar.Expand ("%WindowsFolder%\\ETK7\PROG\\xxxx.exe"), "", "", SW_SHOWNORMAL, true);

I click file directly in the folder then starts this ??
I take any other file then operate the commands!! :rolleyes

SUF9 formatting multi part number

$
0
0
Hi,

I suspect that this is really simple, but I simply cannot find the answer.

I have a string value such as "1.2.3.4" which I need to 'format' as "01.02.03.0004".
Yes, the original string might also be "1.2.34.2" which should result in "01.02.34.0002".
- I know that the original string will be a four-part value, delimited by "." characters.

I can't find a simple 'format' command that will do this.

So i thought about splitting the initial string into a table (split on the "." character) and then I could loop through all entries in the table, adding the relevant number of 0's at the front.

But I can't find a 'string.split' or similar function.

Any ideas or suggestions most welcome.

Cheers,
Dave
Viewing all 2105 articles
Browse latest View live