|
I found a solution! Here it is:
First, download the MSI sdk, and Install it. Then install Orca. Orca is used to edit the setup database tables. Open the msi package in orca. Go the the Control Conditionals table and set a conditional disable to the next button on the Welcome page. Also add another string to explain that admin rights are needed (Added to the controls table). Set a conditional show and hide on the text strings.
The result:
When a normal user tries to install the can only click on exit.
When admin tries to install they can click next and go on.
I hope this helps someone. Orca is very cool. Can be complex to use, but very cool nevertheless.
|
|
|
|
|
Is it better than the MSI projects in VS.NET? I have a couple MSI projects and was wondering if there was a benefit to using Orca and the SDK instead of just VS.NET.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
I've been playing with asynchronous streams and have a question. When I use the beginRead method for asynchronous reading, the for loop in the code below never gets called until the entire file(fairly large) is completely read(ie. mutiple begin reads and callbacks). I thought that the code should process the for loop while doing some reading of the file and when the read completes right it to the screen. This continues until the entire file is read thereby alternating the output from the for loop and the reading of the file. This is not occuring for me. Is there something I'm missing? I've tried this numerous times using different types of streams and the same thing occurs. Code snippet below:
FileStream inputStream; // inputStream is a filestream
public void Run()
{
inputStream.BeginRead(buffer,0,buffer.Length,new AsyncCallback(this.Callback),null);
for(long i = 0; i <500000; i++)
{
if(i%10000 ==0)
Console.WriteLine(i.ToString());
}
}
public void Callback(IAsyncResult ar)
{
int bytesRead = inputStream.EndRead(ar);
// write output to screen
}
|
|
|
|
|
does anyone know where to start?
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
|
thanks, looks just like wat i need.
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
|
your damn straight, why should i do any research, wheni have you here to do it for me
Besides, i had more important things to do yesterday.
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Nnamdi Onyeyiri wrote:
Besides, i had more important things to do yesterday.
More important things to do than programming!?!?! You've lost your mind!
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
David Stone wrote:
More important things to do than programming!?!?! You've lost your mind!
of course i havent, i was lookin up research on electric toothbrushes, and anthropometric data on the hand.
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
I have noticed that programs that use GDI+,
when their windows is moved particially
outside of the screen area, when they are
moved back, they start redrawing everthing
from the beginning (which is very slow).
This doesn't happen with OpenGL or DirectX
programs (lets say: all of them show some
3D objects: a cube, some lines, etc - nothing
more). Why happens this to GDI+ programs?
What should be done to avoid it?
SHould I post a specific link to an example
of this effect?
|
|
|
|
|
Zibar wrote:
Why happens this to GDI+ programs?
Basically this depends on how the application was written. You can specify the clipping region of your screen that gets redrawn with GDI+. I would suggest reading the article : Professional C# - Graphics with GDI+[^]
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|
|
I am not able to get a list of Users from my Domain Controller using a DirectorySearcher. I am catching an execption "A referral was returned from the server". I have added setting the RefferalChasing option to 'all' and I still get the same exception. The Domain, and Server are correct(changed here to protect the guilty).
Does anyone have any ideas?
DirectoryEntry Root = new DirectoryEntry("LDAP://Domain/cn=Users,DC=Server");
DirectorySearcher Searcher = new DirectorySearcher(Root);
Searcher.ReferralChasing = ReferralChasingOption.All;
try
{
SearchResultCollection Results = Searcher.FindAll();
foreach(SearchResult Res in Results)
{
Console.WriteLine(Result.Properties["cn"][0]);
}
}
catch(Exception Ex)
{
Console.WriteLine(Ex.Message);
}
John Marshall
JMarshall@aafcu.com
|
|
|
|
|
http://codeproject.com/csharp/GroupAndMembers.asp[^]
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
I'm have two listboxes and I have to set it up so I can drag items from one box to the other, including multiple items if they are selected with the ctrl or shift key. I've got it working at the moment, but it seems like a horrible cludge and I wondered if they're isn't a better way?
This is what I'm doing:
For the source listbox (it only has to go one way, BTW), I set up the ItemDrag event to create a DataObject and then set it to the SelectedItems[0] with the DataFormats.Serializable because apparently the collection it's self isn't serializable. Then I call DoDragDrop with my DataObject.
For the target box I set the DragEnter event to first check if the data is Serializable using GetDataPresent. I then try casting the data to a ListViewItem (catching the exception if it won't cast). Then, if it casted okay I check that it actually came from right ListViewBox. If all these tests are passed I set DragDropEffects to Copy (otherwise none).
Then for the DragDrop event in the target box I just ignore the data being passed (because it was already checked by DragEnter) and just copy all the SelectedItems into the target box.
It seems to work okay, but it doesn't seem like the most elegant way of doing things. Does anybody have a better or more efficent routine? Also, is there any simple way to get the outline dragging that you see in Explorer? If so how do you go about this?
Thanks
WJ
|
|
|
|
|
i have created a simple service in c# i wanted to install it on xp plataform but when i use the command
installutil C:\mcWebService\bin\Debug\mcWebService.exe
(let me say first thats not web service thats a window service)it executed successfully but i did not find any
mcWebService service in service list.
whats the problem?
can any body provide the windows services example links?
i will be very thank full to u?
r00d0034@yahoo.com
|
|
|
|
|
What is mcWebService?
To install a web service, all you need to do is copy it into an IIS5 "application" folder.
Paul
|
|
|
|
|
It's not a WebService...he's having the obligatory problems with Windows Services that everybody seems to have...
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
I had the same problem when I played with windows services.
Not sure how to fix it.
|
|
|
|
|
|
yes i have created but i could not successed to install it ?
how to do that?
r00d0034@yahoo.com
|
|
|
|
|
I am trying to figure out how to set up a listview control so I can draw the items myself. Can anyone help me with this?
Thanks in advance for taking time to help me out!
dpb
Darryl Borden
Principal IT Analyst
darryl.borden@elpaso.com
|
|
|
|
|
|
I use this C# code to read a text file line-by-line, process each line and then write it back to disk. It works beautifully, if the file contains only the first 127 ASCII chars. The chars 128-255 are simply skipped. How can I fix this?
StreamReader sr = new StreamReader(m_sSrcFileName);
StreamWriter sw = new StreamWriter(m_sDestFileName);
try {
long savedBytes = 0;
do {
string oldline = sr.ReadLine();
string newline = ProcessLine(oldline);
savedBytes += oldline.Length - newline.Length;
sw.WriteLine(newline);
} while (sr.Peek() != -1);
Console.WriteLine(savedBytes + " Bytes saved");
return savedBytes;
}
Remember that the input files are not 2-bytes-unicode, but 1-byte-extended-ASCII.
Thank you in advance.
Luca Leonardo Scorcia
http://zip.to/kojak (only in Italian)
|
|
|
|
|
Have you tried System.Text.Encoding.ASCII ?
eg. StreamReader sr = new StreamReader(m_sSrcFileName, System.Text.Encoding.ASCII);
Paul
|
|
|
|