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

How to delete multiple folders with a wild card

$
0
0
Hello,
We use SUF 9 to install content on client workstations. When we install new content we like to delete all the old content before installing the new content. this content consists of numerous folders of documents.

Currently we are using Folder.Delete to delete each folder individually - like this:
Folder.DeleteTree("C:\\Program Files\\CaseWare\\Document Library\\MP General Doc Library 6.0", nil);

While this method works well I currently have to list out 44 folder delete commands. The number and name of the folders are changing on a regular basis with the exception of the MP at the front of the folder name.

We are trying to determine how to delete all folders in a directory that start with MP in the folder name without affecting any other folders in that directory.

We are currently using the following code to try and accomplish this but it is not working. Does anyone have a suggestion on how to accomplish this?

tbl_folders = Folder.Find("C:\\Program Files\\Test\\", "MP*", false, nil);
for index in tbl_folders do
Folder.DeleteTree(tbl_folders[index], nil);
end


Thanks

How to close a running software if it is running during installation

$
0
0
Code:

-----------------------------------------------
-- Checks to see if a particular file exists.
are_ya_there = File.DoesExist(_ProgramFilesFolder.."\\SOFTWARE.exe");
---------------------------------------------------------
-- If the file exists, check to see if the file is in use.
if (are_ya_there) then
    are_ya_busy = File.IsInUse(_ProgramFilesFolder.."\\SOFTWARE.exe");
-- If the file isn't in use, overwrite the file.
    if (are_ya_busy == true) then
        -- Get the titles and window handles of all open windows.
windows = Window.EnumerateTitles();
-- A variable containing text in the title you want to search for.
window_name = "MY SOFTWARE";

-- Loop through the table of windows.
for handle, title in pairs(windows) do

-- Check if the window title has the target text.
    result = String.Find(title, window_name, 1, false);

-- if the string was found in the title, send the window a close message.
    if (result ~= -1) then
Window.Hide(Application.GetWndHandle());
Dialog.Message("MY Software Edition #BUILD# Setup", "Setup Installation has STOPPED!. \r\n\r\MY Software is in use, Please Exit it before you continue. Setup Will Exit after you click  OK! You will need to restart setup again to continue Installation.", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
Application.Exit(0);
        break;
              end
        end
    end
end

Can someone please help send the command to close this running software and then allow the setup to continue installing

How to install a CA certificate programatically

$
0
0
Hi

this question is not directly related with SF but assuming that the users of SF
can have information on the subject

i need help on installing a CA certificate programatically , (on target machine)
does someone know a way to do it

i can write a .NET dll to do it but ,i can not use .NET for only this ,because application is totaly native ,adding a huge dependency is not a good idea

i could use Certmgr.exe commandline but ,that can not be reditributed

do you know any other way to install a CA certificate programatically other than the options above

it has not use a Lua based code ,i can write code in C/C++/Delphi

P.S , i am not using Setup Factory and i will not use it for this

How to cancel the Uninstall process

$
0
0
Hi,

i'm trying to cancel the uninstall process at the "On Pre Uninstall" Action.

At this point i start an other application get the ReturnCode via File.Run(...)
I evaluate this ReturnCode and under certain conditions i show a Messagebox. In this Messagebox the user can cancel the Uninstallation.
However the uninstall.exe is ever be deleted - how can i prevent this?

Code:

local fileName = SessionVar.Get("%AppFolder%") .."\\Uninstall\\UninstallCheck.exe"
local headerText = SetupData.GetLocalizedString("MSG_UNINSTALL_HEADER");
local messageText = SetupData.GetLocalizedString("MSG_UNINSTALL_MESSAGE");


ReturnCode = File.Run(fileName, "", "", SW_MINIMIZE, true);
--Dialog.Message("Error!", ReturnCode, MB_RETRYCANCEL);

if (ReturnCode == 1 ) then
        -- Confirm that the uninstallation executable should be launched.
        result = Dialog.Message(headerText, messageText, MB_YESNOCANCEL, MB_ICONQUESTION, MB_DEFBUTTON1);
        if (result == IDNO or result == IDCANCEL) then
            Application.Exit();
        end
end

Thanks,
Tobias

Dead product?

$
0
0
I am wonderinng if there are any plans for a v10, or if v9 is the final version of SF. No major update for almost 2 years now, no major version beta to have a look at. Running out of ideas? ;) Extending my support plan would make much more fun with a major update release in sight.

Maintenance Agreement renewal for SF and TU?

$
0
0
Hey guys,

We're getting ready to purchase licenses for 5 more copies of both SF and TU, and in the process, we've discovered that our 2 current installations of SF and our one installation of TU are out of maintenance. Does IR support the automatic renewal of maintenance agreements across multiple products? Keeping track of 7 installations is going to be difficult individually, as each would have to be handled via purchase order. Is it possible to combine several renewals on one PO?

To whom would our purchasing agent need to speak to get something like this set up for us?

Many thanks,

DDoutelMS
Mindspark Interactive Network, Inc.

Two Product Versions...

$
0
0
Is there any relation between the %ProductVersion% Session var, and the product version specified on the Build Settings / Resources tab? If not, is there a way to use that value as the value of %ProductVersion%? I've been having to set this value in two places, and would like not to have to do that.

Thanks in advance!
DDoutelMS
Mindspark Interactive Network, Inc.

Something I need to worry about?

$
0
0
The Boss got this warning while building and signing one of our SUF installers. Is it something we need to be concerned about? Looks like it retried x1, and succeded...

Code:

Warning 7005: Failed writing setup size to archive prior to code signing (32) attempt 1 retrying.
Code signing setup...
Done Adding Additional Store

Thanks, guys!
DDoutelMS
Mindspark Interactive Network, Inc.

Registry Problem

$
0
0
Hi,
I can create the registry key in CURRENT_USER but not in the LOCAL_MACHINE:

Registry.CreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\B lah");

It does not work!

Change Dialog backgrounds with Themes

$
0
0
I am using a custom theme. But the last dialog in Uninstall, and other programmatically created dialogs like Dialog.Timed.Message have a dark grey background.

How can I change these to white?

Bug?

$
0
0
My main application is installed to %AppFolder%
My application data must be installed here : %ProgramFilesFolder64%\ProductData

I must create the uninstaller and its folder in : %ProgramFilesFolder64%\ProductData\Uninstall

However, I think due to a bug if I set :

Uninstall files folder to %ProgramFilesFolder64%\ProductData\Uninstall
and
Executable path and filename to %ProgramFilesFolder64%\TruePianos\Uninstall.exe

After uninstall is finished, installer cannot load the background images of uninstall window (only for After Uninstalling).

Is this a bug?

3 Questions

$
0
0
Setup Factory is a very easy and rapid application to build a setup in no time, I enjoyed it!
I've got a few questions, please help:

1. When I create a setup file, the 1st time run will install the software, but when software is installed, running the setup MUST cause the modify/remove window to show-up, not installer again!

2. I need to pre-load the install path with a string from registry.
My installer will run both on x86 and 64 platform.
My code does not work on x64:

Application.SetLastError(0);
local cInstallFolder = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\VST", "VSTPluginsPath", true);
if Application.GetLastError() == 0 then
SessionVar.Set("%AppFolder%", cInstallFolder);
end

3. This does not work, where I am wrong?

INIFile.SetValue("%ApplicationDataFolderCommon%\Co mpany\Product.ini", "General", "BankDir", "%ProgramFilesFolder64%\Product\Content");

I copy a blank file named Product.ini in C:\ProgramData\Company and then want to set the contents to:

[General]
BankDir=C:\\Program Files\\Product\\Content

But my code snippet does not do anything!

Setup Factory & Windows 8.1

$
0
0
Hello,

Do both of the Setup Factory 8.0 and 9.0 support windows 8.1? I have an installer that works in Win8 but crashes in Win8.1. I think it's version 9.0.4.0.

Thanks
Hai

Working directory for File.RunAtReboot()

$
0
0
File.Run() has a parameter for the current working directory in which the program is run. File.RunAtReboot() does not.

I need to run a program after a reboot with a specific working directory. How do I do this?

SQLITE3 Plugin for SUF 9?

$
0
0
Where do I download the SQLLITE3 Plugin for Setup Factory 9? Thanks.

Web deployments?

$
0
0
I was unable to find anything at IR's website regarding whether Setup Factory 9 supports the creation of web deployments, i.e., where a small setup.exe stub is created that then downloads a file or files that have been placed on a web server which consists of the bulk of the installation?

Wise Install does. SetupBuilder does. InstallAware does.

But does Setup Factory support such a feature? If so, how? It definitely is not obvious from within the SF program.

Requirements Difference between 9.1.0.0 and 9.1.1.0

$
0
0
Hey guys,

Believe we've stumbled on a difference in the way setup requirements are handled between SUF 9.1.0.0 and 9.1.1.0; we updated a production signing server with the latest version, but hadn't gotten around to updating the dev machine. We discovered the difference when a new installer we'd built failed to install under Vista RTM, when the checkboxes for all listed versions of Vista under Requirements were checked. On looking at those checkboxes with the Production SUF (9.1.1.0), none of the vista flags were set, and many of the other OS flags were completely different from what I'd specified in 9.1.0.0. Anyone else report this yet? "It ain't pretty...!" ;)

Thanks,
DDoutelMS
Mindspark Interactive Network, Inc.

New Version Available 9.2.0.0

$
0
0
Today (September 4, 2013) we have released a new version of Setup Factory (v9.2.0.0). Commercial users can download the new full installer from your customer portal.

This release contains the following features and bug fixes:
  • Feature: Updated Setup Factory's design environment to support Windows 8.1.
  • Feature: Updated Setup Factory's runtime manifests to support Windows 8.1.
  • Feature: Updated the 'System.GetOSName' action with Windows 8.1 and Windows Server 2012 R2.
  • Feature: Updated the OS condition tree to include Windows 8.1 and Windows Server 2012 R2.
  • Fix: Fixed a bug where 32-bit PNG images would not be properly converted to 24-bit when added to the setup.
  • Fix: Changed the "1.44 MB Floppy" segment size output option to "Smallest segment", since Setup Factory no longer creates setups that will fit on a 1.44 MB floppy.
  • Fix: Fixed a bug in the 'DlgSelectPackages.UpdateDisplay' action where session variables would not be properly expanded when updating the package tree control.
  • Fix: Fixed a redrawing issue with the Scrolling Text screen control on Windows 8.
  • Fix: Removed the default creation of the project and output folders when running Setup Factory's design environment.
  • Fix: Fixed a bug in the 'DlgScrollingText.SetProperties' action where some settings may cause the control to disappear.
  • Fix: Fixed a minor issue in the 'Service.Create' action's properties dialog.
  • Fix: Fixed an issue in the Zip Plugin where it would fail to open the help file on some browsers.
  • Fix: Updated IRScriptEditor.exe to 2.0.1001.0.

Programs and Features still shows the package as installed ?

$
0
0
My installation package is appearing Twice in Programs and Features. I must have messed up somewhere.

However when Uninstalling either of them, and after rebooting, they still appear there, and the Folders are still resident.

Any suggestions appreciated thanks and I have looked and looked and cannot seem to find the issue.

command

$
0
0
what is the command to an x any folder from C to move to D?
Viewing all 2105 articles
Browse latest View live