Launch an application using Advanced Installer - advanced-installer

I have developed an installer using Advanced Installer.I have a GUI which is a .exe file which I want to launch after the execution completes.
I tried adding the .exe to post installation but the .exe is launched midway when the installation has not finished and when I close the GUI button the installation completes.
I want that when the installation is complete,the GUI(.exe) file should be launched
I also want that on the click of launch application button at the end of the installation should launch the GUI
When I click the launch application button it opens the folder SYSWOW64
I found few solutions to this,I tried all of them but nothing seems to be working for me at the moment.
Thanks,
Regards

It's going to be a custom action, right? So if it runs too early, why can't you just sequence it later, maybe after InstallFinalize.
Do you need a button to say launch it? Why not just run it?

You have multiple options to launch the application at the end of the installation using Advanced Installer. The article I linked explains all of them.

Related

I can't choose to open with Java 8. It goes to Internet Explorer and I get stuck in a loop. What do I do?

I have installed Java 8 JDK and JRE, and when I type javac into cmd, everything seems fine. However, when I download a .jar, for example Optifine, I have no option to open with Java. The icon of the .jar is Internet Explorer. When I double-click on the Optifine .jar, I am brought to a "View and track your downloads" window, where I then get stuck in a "Save" and "Open" loop. What can I do to actually see Java as an option to open with? Sidenote: if anyone does reply, please use simpler coding language, as my knowledge only comes from hours of research on how to fix this problem.
I don't know which version of Windows you are using so I can provide detailed step by step guide. .jar files can be opened with Java and compression/decompression utilities. In general, you can change the default programs in control panel and associate .jar file with a specific program you want.
Note: As an irrelevant point in order to use Optifine.jar for Minecraft modding you do not need to open it.

Is it possible to run RepastJ model in a web browser

I am new to agent based modeling, and am running the demo model that come along with the RepastJ (Repast 3). Is it possible to run the simulation in a web browser? Thanks in advance.
you can try this,will help you a lot :)
If you are using a PC:
Go to the Java website to obtain a free copy of the Java software, and download Java (at least the
Java Runtime Environment), if it is not already on the PC to be used.
Then download RepastJ to run the Basic Immune Simulator.
If you are using a Mac:
A copy of JAVA is NOT needed. Simply, download the OS X version of Repast J.
Install the Repast J that is appropriate for your operating system by following the instructions
provided on the Repast website for the downloads. Be sure to download the correct version of
Repast J for your computer.
Download the Basic Immune Simulator file (BasicImmuneSimulator.jar) onto your computer.
Once the above steps have been completed, the simulation may be run as follows:
Start Repast either by clicking on the icon or by finding the repastj.exe file within the repast
directory and clicking on it. The Repast toolbar should appear.
At the left edge of the toolbar there is an icon of a folder.
Click on the folder and a “Load Model” pane appears.
Scroll down in the Load Model pane and click on “Models” and then the “Add” button.
A browser will appear. Use this browser to find the BasicImmuneSimulator.jar file, which can be
found where ever it was downloaded.
Click on the BasicImmuneSimulator.jar file and "Basic Immune Model" will appear under “Other
Models”.
Click on the “Load” button, to make the Basic Immune Model graphical user interface (GUI)
appear.
Once "Basic Immune Model Settings" GUI appears, click on the "Parameters" tab to see the input
parameter choices available for a simulation run, if the parameters are not already displayed.
Choose the pathological challenge from the list in the GUI. Any other parameter may be
changed to the user’s discretion at this point as well.
Click the Run button (triangle) on the Repast toolbar to start the simulation.
Note that data files from the simulation will be saved automatically to wherever the repastj.exe file
is located.

BlackBerry Simulator not reflecting code changes - needs restart for every change

I am using BlackBerry SDK 5.0.0.36 on eclipse
whenever i am doing any changes i need to restart the simulator
i want to run simulator only once and dont wanna restart it again n again for little changes
i refer to this thread in stackoverflow.com -> "View changes without restarting Blackberry simulator?"
i follow the given procedure in above thread but still my simulator not making it
i also tried it in BlackBerry SDK 6.0 and 7.1 . . .but i am still fighting with same problem
As Mister Smith says, this functionality is not highly reliable. Sometimes it works, and sometimes not.
However, one fixable problem that I encounter somewhat often is that permissions on the JDE plugin folders get restricted so that the BlackBerry simulator cannot write out the proper files to perform hot swapping.
I can often fix this in Windows explorer by going to the root folder for Eclipse (you could probably just go to the JDE plugin folder, if you're concerned about opening up permissions too much). In Windows Explorer, right-click and select Properties. I then uncheck the Read-only checkbox. Then, use the Security tab and make sure that your user account has Full control for that directory, and all of its subdirectories.
I will usually also just transfer ownership of the entire Eclipse directory tree to my user account (e.g. HOSTNAME\username). Do that with the Advanced button on the Security tab.
Also, have a look at this question/answer and this BlackBerry support forum thread on the topic of hot swap file permissions

application wont start or load in blackberry simulator

I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues:
When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load.
Going to applications doesn't show the application itself, in fact it never does.
Trying to load the applications cod file (File->load java program) never works. Tried the steps in this thread, with unreliable results.
Extremely small changes, such as modifying the value of a width variable by one, commenting out a function such as makeMenu or adding a button will cause code to no longer work, with no errors shown by the IDE.
Using clear.bat with sometimes work, sometimes not. Same with manually removing all files with the name of the project.
reinstalling the eclipse environment and the blackberry plugin did nothing more then burn off an hour.
having "load on startup" in the blackberry_app_descriptor.xml file is set.
Both systems are using Eclipse 3.5.1, BB plugin for eclipse 1.1 beta, Java 4.5 with the 8300 simulator. THe only difference that I am seeing is the operating system between the two systems. The work one being XP Sp3, home being vista. THe vista one isn't perfect, but I can test variable changes without flipping a coin to see if the app will even load or not.
I've tried the solutions that were similar on this forum, such as this one, but it looked to be that those solutions are dated as none of the options for the steps existed in my eclipse install.
So has anyone ran into such baffling behavior, and can it be fixed? Anything that I might have missed that could be tried?
I've been seeing this behavior with the new 1.1 plugin, the application doesn't load on startup and the FIle->load java program doesn't help. For me, the solution was I have to run a clean build every time, that is the eclipse clean and build instead of just build, not the clean.bat... Hope this helps!
Try clearing resources that have improper naming structure in your projects stuff with spaces or special character in the name of the file.
It took me two days to figure out.
One solution i got regarding your problem.
As I See Please run the application first time as Run as blackberry simulator
that is got start and here pick up run and then Run as Blackberry simulator

How to debug .exe started by another .exe in Delphi

I want to debug App2.exe, which is started by App1.exe. If App2.exe were a dll I could specify a host application, but this doesn't seem to work with an .exe.
I now use 'attach to process', but this is useless if App2.exe crashes before I do that.
Is there a way to do this with having to attach to the process manually?
Set the "debug spawned processes" debugging option. It is off by default. When App1 starts the new process, the debugger will pause. If the debugger isn't already attached to the new process automatically, attach to it, and then resume running it.
No, but there might be a way to get it to attach properly. Find something that you know will happen in App2 soon before the crash point, and have it pop up a modal dialog box at that point. Then it won't continue until you dismiss it, giving you time to attach the debugger.
I guess you could launch app2.exe yourself and pass any necessary command line parameters to it.
If you're using windows, there is a built in support for it.
basically, you can tell the windows loader to launch some other process whenever a specific process is launched. for example, you can tell windows to always launch winword.exe whenever you click on notepad.exe
you can use this ability in order to automatically launch a debugger whenever you start your process (this is why this feature was originally introduced, however you are not restricted to launch only debuggers :))
You can read exactly how to do it here.
You can also download the debugging tools for windows package and use GFlags to do it for you.
If both apps are yours and you have the code than I propose the following:
Make a debug mode for both apps. Use external inc file for instance
Start two IDEs and load each app in its own IDE. Build in debug mode
If done right you can now debug the internal communication between apps
I have a project where a server spawns multiple exe worker processes that host each its own dll module. I have a debug mode in which I can specify which dll will be loaded and I can have both processes running and communicationt in between from IDEs. It is the best way I have found so far.

Resources