Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Xeev · Jan 03, 2011 at 10:45 PM · executablelauncher

Standalone pre-launch application aka Launcher

Hello I'm fairly new to Unity so bear with me on this, I want to create launcher probably as silverlight/moonlight-based window with auto-update capabilities with more settings than configuration window that appears at default. I also need it to always run before initial game scene is launched. I thought of 2 approaches, but If you can think of something else I'd be glad to hear

1) When unity binary is launched it would start another executable ex. launcher.exe and quit. Launcher.exe would check/apply updates then show button "PLAY", after pressing that launcher would start unity executable again but now with argument like "-nolauncher" which would start actual game and not take us into loop. Is this possible?

2) Embed launcher into Unity executable something like replacement for configuration window that is shown at default. As I have complete C# source of launcher it doesn't have to be standalone executable.

Any pointers if either of those 2 approaches are doable and where to look for more info will be much appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Keavon · Feb 02, 2011 at 06:56 AM

Hello. I would recommend you make the user start the game as the exe of the launcher/updater/patch client. No need to kill the application then start a second. Then just make the start button kill itself and launch the real game with a random secrert argument. Sorry I'm no use for telling you how to program the patcher, and I don't even know how to make a program require or send an argument (other than after the location in a shortcut). I hope this helps! -Keavon

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by NinjaSquirrel · Jan 03, 2011 at 10:51 PM

You know unity already has a web launcher right? If that's what you mean.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Xeev · Jan 03, 2011 at 11:24 PM 0
Share

I'm curious as to what you mean by "web launcher", what even make you think I want to do something with web? Have you really read my post?

avatar image
0

Answer by Fehr · Aug 17, 2011 at 11:57 AM

We have the same problem.

Essentially we'd like to launch the game we'd like to launch the game, completly circumventing the default launcher or 'configuration' window, that is produced with a unity build. Graphics and input will be have defaults and will be customizable in game.

If anyone who has a solution to this, sharing it would be a great help to me and my team.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Fehr · Sep 19, 2011 at 07:17 AM

Hey, thanks for the reply, acutally it wasnt the web player we where after at all, we didnt want what i now know is called the 'Display Resolution Dialouge'.

This can be switched off by finding the following setting under: File > Build settings > Player Settings, then under Stand-alone Player Options there is a Display Resolution Dialog setting, with a dropdown box. Set this to Disabled.

Xeev, perhaps you could write your updater/launcher as a stand-alone (with nothing to do with unity) that stays in the same directory as your game executable, and have whatever you use to package the installer for your game reference that updater/launcher as the default desktop & startbar shortcut. From within that launcher you could have it directly execute the game executable when they click the play/launch button, and by disabling the resolution dialouge it will launch the game directly.

I hope I've done something toward answering your question Xeev, but I thought I'd post back with the solution to my issue. Sorry if my answer is a little unclear.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by KnightRiderGuy · Nov 11, 2018 at 04:46 PM

In Visual Studio you can build a WPF window and call it Launcher or whatever you like and have a couple of buttons, one to launch the Game.exe and another to launch a PDF file or web sire address or anything else you like. I've been experimenting a lot with the WPF window, it's pretty versatile as to what you can do with it. ;)

This is just a small sample of the one I made using Visual Studio. I hope this helps, sorry it's so late though.

alt text


2018-11-04.png (96.2 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Switching Graphics API Through a Launcher 0 Answers

Executable won't start. 2 Answers

Shaders in Project Aren't Transferring Over to .EXE 1 Answer

All Unity-related audio stopped working 2 Answers

Bullet Launcher Script 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges